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

javascript

$
0
0
js.ktrsource.xlsHi

I want to conver the following data.
Source:
id preference
1 104:3.333
2 103:3.45,102:3.12
3 101:2.81,102:4.0,103:5.0

Target:
id code count
1 104 3.333
2 103 3.45
2 102 3.12
3 101 2.81
3 102 4.0
3 103 5.0


The attachment is my source excel file and the ktr. Can oneone help on the javascript? Currently Only the following 3 rows will ge generated in the result.
id code count
1 104 3.333
2 102 3.12
3 103 5.0


Thanks/Maria
Attached Files

Instaview not opening - just inactive screen (PDI 4.4.1 GA)

$
0
0
Hi,

is there anyone who may help me with Instaview for MongoDB on PDI 4.4.1 GA?

When starting Instaview within PDI nothing happens. The screen is looking like if it is inactive (kind of black screen). No errors in logfiles.

Further informations about my Environment: VirtualBox with Centos 6.4 (32bit), PDI 4.4.1 GA, JRE 1.7.0_25, XULrunner-1.9.2.17, SQlite 3.7.16


Any help would be great.

J

CDF - table component - may be bug in server-side pagination

$
0
0
Hi all,
I was testing CDF table component and the functionality of server-side pagination. Component did not work (I did everythink according to this post http://forums.pentaho.com/showthread...te-server-side). After while of debugging, I think, I found problem and fixed it. I editted the file ..\pentaho-solutions\system\pentaho-cdf\js\components\table.js. I replaced the line 100 in paginatingUpdate function as follows:

Original:

paginatingUpdate: function() {
...
this.queryState.setParameters(this.parameters);
this.queryState.setAjaxOptions({async:true});
this.processTableComponentResponse(); //json parameter is missing
}

Fixed:

paginatingUpdate: function() {
...
this.queryState.setParameters(this.parameters);
this.queryState.setAjaxOptions({async:true});
this.queryState.fetchData(this.parameters);
},

(P.S. I use the latest table component from the latest CDE installer)

Then the server-side pagination and sorting started to work.

Problem, that I'm solving now, is, that the searching does not work when server-side pagination is active. What should I do to make it functional. And is it posible to filter rows according to the data in the columns? (I found that search parameters are generating for each column).

Thanks in advance,
Honza

P.S. Sorry for my english

Child / Parent Relationship in SalesForce Input step

$
0
0
Hi everyone,

I am currently struggling with the Salesforce Input step of my transformation.
I started with a pretty simple query that won't give me the Parent Casenumber even though this should work (and is working for example when I did some testing with soapUI)

Select CaseNumber, Parent.CaseNumber from Case

It will return the CaseNumber but won't give me any values for the Parent.CaseNumber (just stays null) even though there are Cases that definitely have Parent-Cases.

Any help is appreciated :)

Error in Switch case

$
0
0
Hi All,


I'm new kettle tool. I'm getting exception while running a transformation. How to fix this error???

anyone help me out of this?


Error in step, asking everyone to stop because of:
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) :
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : Couldn't get row from result set
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) :
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) :
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.processRow(InsertUpdate.java:318)
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : at java.lang.Thread.run(Thread.java:662)
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : Couldn't get row from result set
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) : Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
2013/08/07 16:29:25 - Security Table (Insert / Update) [ TICKER ].0 - ERROR (version 4.4.0, build 1 from 2013-04-26 11.39.47 by waltersj) :

URGENT: Problem password crypt in kettle.properties...

$
0
0
Hi.
I've searched on the forum and I saw that other people have the same problem and have had no response.
The problem is that the Kettle does not seem to automatically decrypt the passwords as a parameter in kettle.properties.


Es.) UNDER.DB_CONF.PASSWORD = Encrypted 2be98afc86aa7f2e49918a77efc9db68a


My friend has fixed the problem by changing the class org.pentaho.di.core.database.ConnectionPoolUtil.java, in a very old version of the Kettle.
The question is: I have to modify the source code for version 4.4.0 too, or use a transformation with a Javascript step that decrypts the password, or... it is possible in some way that the Kettle 4.4.0 read directly from the kettle.properties encrypted password, decript it and use it in the database connection?
Please help me...
Thanks.
Ciao... :cool:

Problem with Delete Filenames from Results Job Step

$
0
0
I have a simple job where I am using the Add filenames to Result and Delete filenames from result. The Add filenames to Result step is identifying the filename (noted in log) however the delete filename from results step continues without deleting the file.

I know that there are a couple of ways for me to handle this action however how I think these steps work will be useful.

Flow: --- ETL Flow ---> Add Filenames to Result -----> Delete Filenames from Result -----> Job Done

Here is the log entries:
2013/08/07 09:08:20 - Set ETL variables - Adding file [file:///Z:/Production/ScheduledETL/SN_Workgroup_Audit Weekly/TEMP/New Microsoft Word Document.docx] to result filenames
2013/08/07 09:08:20 - job_DeleteTempFiles2 - Starting entry [Copy or Move result filenames]
2013/08/07 09:08:20 - job_DeleteTempFiles2 - exec(9, 0, Copy or Move result filenames.0)

I am using Windows 7 with PDI 4.8. Northing unusual.

I appreciate your assistance and insight.

Thanks
Ray

question regarding chart post-processing script

$
0
0
Hi,

I have noticed that the code inserted in "chart post-processing script" is not executed once as I was expecting but multiple time, depending on the number of rows in the dataset.
First, I don't know if it is the normal behaviour.
Next, it seems to slow down the generation of the report if the dataset is big.

I have attached 2 sample reports that shows the issue.
The first report (test1.prpt) has 8 rows in the input table and the code inserted in "chart post-processing script" is executed twice.
The first report (test2.prpt) has also 8 rows in the input table. The report contains a group (group1 : 5 rows, group2 3 rows) and the chart is inserted in the footer of the group. The code inserted in "chart post-processing script" is executed 41 times.

Is it a normal behaviour. Is it possible to make this code executed only once by chart generated?

Thank you.

test2.prpt
test1.prpt
Attached Files

Getting Environment Variables outside of execute scope

$
0
0
I wish to get some values at time of plugin class creator. Specifically, {Internal.Job.Filename.Directory} at launch of class to allow some defaulting to occur. The environmentSubstitute function does not work in the plugin class at any time other than execute. How can I get at this value? If this was done intentionally, why was it done that way?

How to execute multiple SQL statements in parallel?

$
0
0
I have a transformation that can have any number of SQL statements in a field in my stream. Right now it has 41 SQL statements but it can have more as time goes on. I want to be able to execute a specified number of these in parallel. I added a sequence to add a repeating number to my stream (1-10), but I am not even sure that's needed. Now the purpose is to execute each SQL statement in this steam that will export dataset and output it to a CSV. I want to be able to run a specified number of these in parallel so I am not waiting for each SQL statement to run one after another.

Any ideas how to make this happen?

Web service/API access?

$
0
0
Hi, we have been using the embedded Kettle jar libraries in a stand-alone app that we exec as a Java remote process that we pass our custom parameters to. The parameters are used as part of the transformation. This allows us to run nightly and weekly reports with variable parameters that are depending on our app.

Our project is exploring ways that this might be done in a more re-usable way, for example, when an implementation of our platform might already have a running Pentaho server. So far I have been having trouble finding if there are web services or web API access for Kettle commands to run .ktr transformations and pass in custom parameters through HTTP. I spent several hours searching and haven't been able to find any documentation on this and if it is possible. Thanks for any help!

-Russell

Looking for some guidance

$
0
0
I have a report that consists of multiple sub reports, where each sub report fetches its data via a web service call. Each web service call returns data about one or more items. When there is more than one item, I need to have all of the sub reports grouped by item, and I'm not sure how to go about doing this when designing the report/sub reports.

In other words, let's say I have items 1, 2, and 3. The current report will output something like:

Sub report A
data for item 1 (from web service x)
data for item 2 (from web service x)
data for item 3 (from web service x)
Sub report B
data for item 1 (from web service y)
data for item 2 (from web service y)
data for item 3 (from web service y)

The desired output is:

Sub report A
data for item 1 (from web service x)
Sub report B
data for item 1 (from web service y)

Sub report A
data for item 2 (from web service x)
Sub report B
data for item 2 (from web service y)

Sub report A
data for item 3 (from web service x)
Sub report B
data for item 3 (from web service y)

I would be very appreciative of any guidance.

how to extract fields from XML data in a field

$
0
0
Hi there, I'm trying to do some simple data extraction from a field that contains a basic google geocode xml response in it using the get data from XML step in Kettle. I'm confused as to why this is breaking as it should be so straight forward. Here is my "file" page selecting the result field:

Here is my content page:

http://snag.gy/MHjUp.jpg

Here is my Fields page:

http://snag.gy/I8ZWh.jpg


Lastly here is my XML directly from the field.

<?xml version="1.0" encoding="UTF-8"?>
<GeocodeResponse>
<status>OK</status>
<result>
<type>street_address</type>
<formatted_address>102 South Main Street, Oakfield, WI 53065, USA</formatted_address>
<address_component>
<long_name>102</long_name>
<short_name>102</short_name>
<type>street_number</type>
</address_component>
<address_component>
<long_name>South Main Street</long_name>
<short_name>S Main St</short_name>
<type>route</type>
</address_component>
<address_component>
<long_name>Oakfield</long_name>
<short_name>Oakfield</short_name>
<type>locality</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Fond du Lac</long_name>
<short_name>Fond Du Lac</short_name>
<type>administrative_area_level_2</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Wisconsin</long_name>
<short_name>WI</short_name>
<type>administrative_area_level_1</type>
<type>political</type>
</address_component>
<address_component>
<long_name>United States</long_name>
<short_name>US</short_name>
<type>country</type>
<type>political</type>
</address_component>
<address_component>
<long_name>53065</long_name>
<short_name>53065</short_name>
<type>postal_code</type>
</address_component>
<geometry>
<location>
<lat>43.6835160</lat>
<lng>-88.5478820</lng>
</location>
<location_type>ROOFTOP</location_type>
<viewport>
<southwest>
<lat>43.6821670</lat>
<lng>-88.5492310</lng>
</southwest>
<northeast>
<lat>43.6848650</lat>
<lng>-88.5465330</lng>
</northeast>
</viewport>
</geometry>
</result>
</GeocodeResponse>


It just seems so basic that it should just work but I've been trouble shooting it all afternoon. Can anyone point to the rookie mistakes I'm making here? When I preview the step in the transformation it just breaks and doesn't have any data to display.

Cheers and thanks!

Walter.

Problem connecting to HBase

$
0
0
Hello, I have HBase and Kettle running on the same machine (with Windows 7). I'm trying to set up an "HBase output" step, but when i click on "Get table names" I get this error:
hbase.jpg

I'm pretty sure that there are no problems with my HBase. I can create tables and list them from shell and I can connect HBase Manager (and it sees tables too) to my HBase using 127.0.0.1 and 2181 parameters.

Thanks in advance for your help.
Attached Images

datastage to pentaho migration ( range lookup )

$
0
0
Hi, anyone is working on datastage to pentaho migration. if so could you please let me know how to develop range lookup in pentaho. Thanks in advance.

Schema - Restricting access permission is not working.

$
0
0
hi,

I can't set access permissions to schema dimensions in Openi, though i followed the steps properly. Some posts said that bi 4.8 is not working well on this topic and 3.8 is fine. Is this issue resolved or still pending. If not, someone please give me a work around for this as soon as possible, since it is pretty urgent...

thanks.

Difference between SMO and LibSVM

$
0
0
Hi,
Can you please tell me the difference between SMO and LibSVM modules in terms of their functionality in WEKA 3.6.8.
Both of them use kernels, but when to use SMO and LibSVM? Please guide me....

Thanks in advance.

MDX where clause+date parameter

$
0
0
Hi Community..!!!
Find the image.

date.png

I have the above hierarchy in my CUBE.

Question :
1) How can I pass date parameter to MDX where clause ?
2) In the above hierarchy, I have year,quarter,month,day of month. but In the calender input control it have only year,month,day(YYYY-MM-DD) format.
How can I skip quarter in where condition and how to pass the calender date to MDX where clause ?
3) How to split date and send them to MDX ?

Can some one please help in MDX and date passing as parameter ?

Many thanks for your help.

Thanks,
Sadakar
Attached Images

Customization of components

$
0
0
Hi,

Does anyone have some info about where to find all information about "how to customize components" ?
Something that can help modifying font, color of components/text in cmponents (especially table components, since they are pretty eye-hurting when there are a lot of them)

Thanks

Dynamic Array with field names

$
0
0
Hi,

I am ETL developer and pretty new to Pentaho with no java background. I am good in basic transformation, however this time got a need to dynamic validations of fields.

Below is my input file format, where each row is having a single customer data. The customer can have more than 1 account with each account having multiple fields across each month (month 1 – 12).Although the number of fields in each acct is fixed,however number of accounts are not fixed.For simplicity I have shown 2 accounts and 2 months per account. Account1 fields are having “01” in it and account2 fields “02”.

I need to do a set of same validations across each account and each month inside same account.

Ex: 1) For i=1 to NUM_ACCT
DATE_OPEN_(i) < DATE_CLOSE_(i)
2)For i=1 to NUM_ACCT and j=1 1o 12
CASH_BALANCE_(i)_mnth(j) + AMOUNT_DUE_(i)_mnth(j) > 999999

Can you suggest ,is there a way by which an array of field names can be formed or any better way to do this ?
Viewing all 16689 articles
Browse latest View live


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