Quantcast
Channel: Pentaho Community Forums
Viewing all 16689 articles
Browse latest View live

Databse connection

$
0
0
Dear All,

I am trying to establish a database connection to a MS Access database which is placed on my desktop. Is there any way to build a connection without ODBC drivers(Browsing to database).

Please let me know how to build a connection from scratch to a oracle database and MS access.

Thanks
santhosha

Renaming Files from .THU extension to .csv by either using Java or JS with Kettle

$
0
0
Hi all,

I have a requirement where I will be recieving files on the FTP server with the file name extension such as .MON, .TUE, .WED, .THU, .FRI, .SAT, . SUN.
I need to use Java or java script to do rename a file with . csv extension before the file can be written.

I have tried to come up with Java code below, which executes in the Java IDE but doesn't execute in Kettle.

Code:


import java.io.*;import java.io.IOException;
import java.io.File;
class Main {


    public static void main(String[] args) throws IOException {




            File oldfile = new File("C:\\Users\\rejalu\\Documents\\Sampledata\\SRP739PCD0003.THU");
            File newfile = new File("C:\\Users\\rejalu\\Documents\\Sampledata\\SRP739PCD0003.csv");


            oldfile.renameTo(newfile);
       


    }


        /* if(oldfile.renameTo(newfile))
        {
            System.out.println(file1);
        }*/


}




When I do execute the test class in Kettle I get the following error.

Line 4, Column 1: Non-abstract class "Processor" must implement method "boolean org.pentaho.di.trans.steps.userdefinedjavaclass.TransformClassBase.processRow(org.pentaho.di.trans.step.StepMetaInterface, org.pentaho.di.trans.step.StepDataInterface) throws org.pentaho.di.core.exception.KettleException"

I also tried it in Java scripting. In the Java scripting step, the transformation excutes but does nothing?

Can someone help me to point me in the right direction?

Thanks,

Ron
Attached Files

Do diff over all tables in DB without copying steps over and over

$
0
0
I have two databases that I need to do a diff on. The tables are identical - just need to do a diff on all the corresponding pairs across the two DBs.

So one solution is to use the merge rows diff step per corresponding table pair - except there will be 50+ pairs.
Thus, it wouldn't be ideal to spend all that time manually copying and editing the merge rows diff steps over and over again. :(


I tried using the arguments parameter and feeding it to the table inputs, etc that way I could have an external python script that iterates through a list of the tables and then call pan over and over giving pan the table name.
BUT I couldn't get this to work because I couldn't find a way to get merge rows diff to compare all columns except the key, etc.


Does Kettle have a different way / a better way of doing this than manually copying & editing 50+ times?

CDE - can't make a floatting bar chart

$
0
0
Hi,

Thanks to the community, i nearly finish my dashboard, particulary thanks to this article/video (http://type-exit.org/adventures-with...ards-with-cde/) which is fantastic for beginners.

There's only one component i can't resolve.
chart.png
CCC bar chart doesn't seem to be the right component to draw it.

From this site (http://mbostock.github.io/protovis/docs/bar.html), i found my goal but how can i adapt this code below into my cde dashboard ?

Code:

new pv.Panel()
    .width(150)
    .height(150)
  .add(pv.Bar)
    .data([[0, 1], [.5, 1.2], [.9, 1.7], [.2, 1.5], [.7, 2.2]])
    .height(20)
    .bottom(function() this.index * 25)
    .width(function(d) (d[1] - d[0]) * 50)
    .left(function(d) d[0] * 50)
  .root.render();

I should draw what i want but i don't have a clue where i should write them.

I found CDE/Components panel/Charts/Protovis Component/Custom Chart script and wrote the previous lines in, but it doesn't work.

Thanks for help :D
Attached Images

Reading Files dynamically at run time not reading the files

$
0
0
Hi all,

I have a transformation that reads csv files with extensions of .MON, TUE, .WED, THUR, .FRI, .Sat,. SUN.

I have implemented a transformation with the expected fields but when I run it, it does not read the file neither does it fail.

Can someone please explain to me what is happening?

I have attached both the transformation and log file for your reference.

Thanks,

Ron
Attached Files

XML JOIN step and variable substitution

$
0
0
Hi all,

Pentaho Kettle 4.4
PostgreSQL repo
Mysql 5.5 data source
Debian Wheezy box

The 'XML ADD' -> Root XML element field and the 'XML JOIN' -> Xpath Statement field both do not appear to substitute variables.

i.e: when I place a variable (created and assigned a value in a previous transform) in either of those fields I get errors that look like this

--- Caused by: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token
Note: this is the error from the xpath statement.

Note that hard coded xpath and root element statements work and other variables used in 'Text File Output' steps work.

Any clues? Is this a known issue? Am I being unreasonable expecting variable subs to work in these steps?

Thanks!

Josh.

Mondrian Installation

$
0
0
Hello All,
I have downloaded mondrian jar from sourceforge and put it in Tomcat 7 webapps folder under mondrian. But there is no response in browser if I go to //localhost:8080/mondrian/mondrian.The documentation says that there is a war file of mondrian which after exploding would show WEB-INF folder. But what I downloaded from sourceforge is an executable jar file. After unpacking I see META-INF, DefaultRules, DefaultRulesSchema, mondrian executable jar file and a mondrian folder. I do not see the WEB-INF folder.
I am bit confused here. I would appreciate some help in getting started with mondrian.
Thanks
Sanksh

Importing the metadata of a flat file that has no headers

$
0
0
If we are importing a flat text file that has no headers, and no delimiters (with fixed-length data), and we happen to have the column names, column lengths, and datatypes in another file (for example, in an Excel file), can we import that information into the flat file transformation?

In other words, can I import the info that goes onto the Fields tab of the Flat File Input, or do I have to type it all in? (I don't want to use the visual tool, using the divider bars, because there are too many fields and that is more error-prone.)

Thanks.

Table Input: SELECT only retrieving fields with 10 characters

$
0
0
Hi guys,

So.. here's my issue. I'm currently reading in usernames from a file. The file only contains one column, with about 100 rows, labelled 'User'. This file feeds into a Table Input step, which is running the following (modified) statement:

Code:

SELECT t_user FROM tableName WHERE t_user = ?
The Table Input step is configured to insert data from the file input step and to execute for each row.

Now. When I output the SELECT results to a file, it is only retrieving the values from the database that are 10 characters long (which is also the maximum length for that field in the database)

Further information:
- It's an Oracle 10g database used for JDE Enterprise One.
- I've tried this in both PDI 4.4 and 5.1-SNAPSHOT (Build date: 2013-11-12 16.43.44)

Any thoughts?

Thanks,
Dwayne

Infobright Loader Issue

$
0
0
Hi everyone,

Im using Infobright Loader in kettle and I have some problems with the order that the registers are inserted in the database.

I have a lot of columns in the fact table and when the Infobright Loader step finishes some columns are inserted in a different order and when I use the Select Values step to see the columns I can see that are in the same order than in the database table. So I don´t know what´s happening with this.

I would appreciate any help,

Thanks!

How to access the MS Active Directory (LDAP)

$
0
0
Hi All ,
Integrate Pentaho with Active Directory (LDAP) like:

I am changes on this files :
applicationContext-security-ldap.property and pentaho.xml file but tomcate is running fine but not access the MS Active Directory (LDAP) server.Please let me know this issue i have use this blog.

http://ramathoughts.blogspot.be/2010...ory-in-10.html


Thanks!
Manoj

Chart Drill Down to Table Component in different panel of the same Dashboard

$
0
0
HI,
I have a bar chart displaying sales in different states. I want to implement that when I click on the bar then the category value (i.e state) should be passed to the table component and the table should display data for that state.
I would appreciate any help.
Thanks in advance.

MDX change aggregation type of measure

$
0
0
Hello.
I have a simple cube:
2 Dimensions: dim1, dim2
1 Measure: value (default is sum aggregation type)

I want to change aggregation type in my mdx query to min, max, distinct count, average.
Some like this:

SELECT NON EMPTY {[Measures].[value].min} ON 0
FROM [Cube]
where ....


How can i do this?

414 Request-URI Too Large : when calling report using report URL in iFrame

$
0
0
Hi,
I using Pentaho BI Server 4.8.0 GA.
After designing the report I can preview the report in PRD.
But when I published the report on BI Server and then tried to view then:
Sometime I got "502 Bad Gateway" error.
Sometime I got "414 Request-URI Too Large"

I followed this link "http://wiki.pentaho.com/display/COM/Enable+POST-Method+for+xactions"
but it did not worked after restarting the server.

URL length is around 7000 character.(because parameter values are more)

Please suggest what to do.

Thanks

How to connect to Mongodb using schema work bench

$
0
0
Hi ,

i want to create analyzer reports based on mongo db.
I tried to connect but could not using schema workbench.

i can connect using kettle or PRD.

Please suggest.

Thanks

New to pentaho - help

$
0
0
Hello all pentaho memers,

Today is my first day with the forum. I am a DBA and Want to explore the capabilities of pentaho report designer 3.9.1 . My intent is to develop a reporting server.

As i am new to this, can anybody suggest a URL/pdf/resource to learn report building step by step with examples. I know basic SQL and programming concepts.

Thanks to all in advance.

Sumit saxena
:cool:

Dial component Problem in pentaho 5.0

$
0
0
hello,
I can get work the Dial component in Pentaho 5.0. is there somebody who can help? I've been searching for 10 days but in vain.
below are properties that I use :

--------------------------------------------------------------------------------
1) the query (Select_CA_2012) :

select chiffre_d_affaires from fait_indicateurs where sigle_eep="IAM" and exercice=2012

----------------------------------------------------------
2) The select component :

Name select_compo
Parameter Param_CA
Listeners []
Parameters []
Value as id True
jQuery Plugin -
Datasource Select_CA_2012
Values array []
HtmlObject Panel_3

--------------------------------------------------------
3) Simple Parameter
Name Param_CA
Property value -
Bookmarkable False

-------------------------------------------------------
4) Dial Chart Component
Name Dial_compo
Range Colors Array ["red","grey","green"]
Intervals Array ["0","22000000","30000000","40000000"]
Parameter PARAM
Listeners ['Param_CA']
Width -
Height -
HtmlObject Panel_2
-----------------------------------------------------------
the penthao.log :

2014-03-12 10:05:10,796 ERROR [org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput] Error generating content from content generator with id [generatedContent]
java.lang.ClassCastException: org.pentaho.platform.api.engine.ActionExecutionException cannot be cast to java.lang.String
at org.pentaho.platform.engine.services.SoapHelper.createSoapFaultElement(SoapHelper.java:174)
at org.pentaho.platform.engine.services.SoapHelper.createSoapResponseDocument(SoapHelper.java:220)
at org.pentaho.platform.web.http.api.resources.XactionUtil.executeXml(XactionUtil.java:311)
at org.pentaho.platform.web.http.api.resources.XactionUtil.execute(XactionUtil.java:333)
at org.pentaho.platform.web.http.ActionSequenceContentGenerator.createContent(ActionSequenceContentGenerator.java:61)
at org.pentaho.platform.engine.services.solution.SimpleContentGenerator.createContent(SimpleContentGenerator.java:57)
at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.generateContent(GeneratorStreamingOutput.java:229)
at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.write(GeneratorStreamingOutput.java:156)
at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:58)
at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:37)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.PentahoRequestContextFilter.doFilter(PentahoRequestContextFilter.java:83)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
at org.pentaho.platform.web.http.security.PentahoBasicProcessingFilter.doFilterHttp(PentahoBasicProcessingFilter.java:88)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.pentaho.platform.web.http.filters.HttpSessionPentahoSessionIntegrationFilter.doFilter(HttpSessionPentahoSessionIntegrationFilter.java:265)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.SystemStatusFilter.doFilter(SystemStatusFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.WebappRootForwardingFilter.doFilter(WebappRootForwardingFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:600)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703)
at java.lang.Thread.run(Thread.java:722)

import-export tool

$
0
0
Hi there,

We have deployed Bi-Server version 4.8 and 5.0 in different machines, and we would like to export BiServer 4.8 solutions and import them into BiServer5.0. We found out there is a import-export tool. So we copied all solutions directories to the new machine, and when trying to use the import-export, we see this message:

./import-export.sh --import --url=http://localhost:8080/pentaho --type=files --charset=UTF-8 --path=/public --file-path=/root/pentaho4/RIPS/ --logfile= /root/pentaho4/RIPS_logfile.log
/usr/pentaho/biserver-ce
/usr/pentaho/biserver-ce
DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=/usr/local/java
DEBUG: _PENTAHO_JAVA=/usr/local/java/bin/java
log4j:WARN Continuable parsing error 3 and column 57
log4j:WARN Document root element "configuration", must match DOCTYPE root "null".
log4j:WARN Continuable parsing error 3 and column 57
log4j:WARN Document is invalid: no grammar found.
log4j:WARN The <configuration> element has been deprecated.
log4j:WARN Use the <log4j:configuration> element instead.
java.io.FileNotFoundException: /root/pentaho4/RIPS (Es un directorio)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at org.pentaho.platform.plugin.services.importexport.CommandLineProcessor.performImportREST(CommandLineProcessor.java:685)
at org.pentaho.platform.plugin.services.importexport.CommandLineProcessor.performImport(CommandLineProcessor.java:435)
at org.pentaho.platform.plugin.services.importexport.CommandLineProcessor.main(CommandLineProcessor.java:286)
ERROR CommandLineProcessor - /root/pentaho4/RIPS (Es un directorio)
java.io.FileNotFoundException: /root/pentaho4/RIPS (Es un directorio)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at org.pentaho.platform.plugin.services.importexport.CommandLineProcessor.performImportREST(CommandLineProcessor.java:685)
at org.pentaho.platform.plugin.services.importexport.CommandLineProcessor.performImport(CommandLineProcessor.java:435)
at org.pentaho.platform.plugin.services.importexport.CommandLineProcessor.main(CommandLineProcessor.java:286)

where RIPS is one of our 4.8 solution directory.

What are we doing wrong? any help?

Thanks,

Rafael

Pentaho 5 CE + Multi Tenant ?

$
0
0
How to enable multi-tenant on Pentaho 5 CE ?


Regards.
Kleyson Rios.

Performance Problems - curious problem

$
0
0
Hi people !

I am facing a curious problem. I have this Job and one of its transformation is a tr that i input a database and perform some lookup steps to take values, and them i set some variables and to finish i write in an output step.

The curiosity about it is that this transformation runs without problems in other 2 envs but in my is taking more than 24 hours !
I just check mem configs, db configs, but when i analyze those DB activies i see a lot IDLE selects and i dont know what can be.

I thougth that maybe someone could just had this problem or some tip to give me.

Thanks.

[]'s
Viewing all 16689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>