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

Bi Serve CE and User Consolle

$
0
0
Hello,
a question, the biserver 6.1 installation allows the use and the start of the User Console?
How can I get it started?
In the Enterprise Edition is started automatically with the installation. Windows platform.

Can't create analysis report

$
0
0
I have installed fusion charts, but i can't seem to find the Analysis report in my File>new>
I already added the licence and installed FusionCharts XT.

Any help?

Problem with LOAD DATA INFILE and enviroment variable value within a SQL script

$
0
0
Hi! I'm having a problem with a bulk load from serveral csv files to several MySQL tables. First of all, I'm running Kettle in a Windows environment, so, I can't use Kettle MySQL Bulk Loader step directly. This step actually does not work within a Windows system due to the use of mkfifo for named pipes. So, I'm using "Execute SQL script" step with variable substitution instead.

The SQL script to execute for each file to load is similar to:

set @bh_dataformat = 'mysql';
LOAD DATA infile 'file.csv' INTO TABLE table_mysql CHARACTER SET utf8 FIELDS TERMINATED BY '|' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'
(col1,col2,col3,col4,@var1,@var2)
set
col5=${environment_variable},
col6 = STR_TO_DATE(@var2, '%b %d %Y %l:%i:%s:%f%p');

where ${environment_variable} is a variable already set in a previous step. I use also variable substitution within the step.

When I run just one step like this, everything works fine and data form one csv file is load within the correspondig MySQL table, but when I run a job with several transformations for loading several csv files into several MySQL tables at the sime time, there is an error like this for each file:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '${environment_variable},
col6 = STR_TO_DATE(@var2, '%b %d %Y %l:%i:%s:%f' at line 4

I can't find where the problem is, specially when the syntax for one step alone works fine.

Does anyone have any idea?

Thank you in advance.

Run a remote job

$
0
0
HI
I created my job on pentaho and I also created my bat and it works correctly on my pc where data integration is installed.
now I want another user manipulates the bat in question since pc but it not working: Here are the contents of my bat file:
\\ Myserver \ data-integration \ kitchen.bat /file:\\myserver\dwh\MAJ-EXP.kjb / level: Basic> D: \ EX.log

Please help me

Multiple XML merge/lookup

$
0
0
Hi guys,

My name is Jimmy and I am very excited to be dipping into the world of PDI!

I have what I assume is a simple transformation, however I am unable to achieve the desired results:


  • 5 individual XML files with the same structure
  • Each file has an <id> element
  • I need to lookup the id value against each XML file, to output a single row per id.
  • Example using 2 files below


ED.xml
Code:

<products>
        <product>
                <id>g_12345</id>
                <url>www.EDURL.com</url>
        </product>
</products>

EY.xml
Code:

<products>
        <product>
                <id>g_12345</id>
                <url>www.EYURL.com</url>
        </product>


        <product>
                <id>g_98765</id>
                <url>www.EYURL.com</url>
        </product>
</products>

The desired outcome (txt output but further down the line output to DB):
ID ED URL EY URL
g_12345 www.EYURL.com www.EYURL.com
g_98765 www.EYURL.com


I hope that makes sense!

Thanks in advance,
Jimmy

Variable value not converting into Number

$
0
0
I am using PDI 6.0 I am facing an issue with GetVariable step.
What I am doing is, I am setting a variable in one of the transformation and using it into another transformation. However when i am specifying the type as NUMBER, it is giving error as "last_num_id String(20) : couldn't convert String to number"

I tried to convert it using Select Value step as well. however getting the same error.

Can any one help, why variable is string, even though value set into it is number?
Also How can I assign variable to Number field?

database lookup date comparison failure

$
0
0
I 'm using the database look up step to compare four fields out of which one of them is a date field. For the date field if i use a '<=' the database look up doesn't return any value. There are records in the database for this condition. For the date comparison i'm getting the date through a variable and the format is set to yyyymmdd. I tried the same using database join step as well. But whenever i put in the condition of <= it does not retrieve the row. If i run the query in the database directly it is retrieving the rows. Am I missing something? The database i'm using is vertica.

Create a Gantt Chart using post-processing script?

$
0
0
Dear All,

I am trying to create a simple Gantt Chart in a PRPT report.
I know there is no Gantt Chart chart-type from the defaults but in JFreechart API there is a Gantt chart. There is the post-processing script section which allows me to make changes after report has been rendered but is it possible to write script that would allow me to change the chart to a Gantt Chart and then build it out using just code? If yes, could any one explain how, if not, are there any suggestions to achieve my objective? I saw a previous post about trying with waterfall chart-type but I could not get that working.

I am very new to Pentaho so any help is greatly appreciated.

Many Thanks in advance Pentaho Community!

adding the value to the bullet chart title?

$
0
0
Hey,

I wanted my bullet chart title to display the value, I tried using extension point bulletTitle and in the value function(){return 'Title of chart'+valueparam;}

but that did not work. Any one have a idea on how to accomplish this in CDE?

How to change DataSource Property of Table Component Based on Click

$
0
0
Hi ,

I need to change dynamically the Data source property of Table component depends on div click.I am 3 div like :div1,div2,div3.Based upon the click div i want to change the data source of table.

Is their any way how we can do this.i have tried through toggle but not able to achieved.

Variable from xml file

$
0
0
Hi,

I need to read an XML file, store the values in variables and use in another transformation.

I've looked at several examples here in the forum, but could not identify what I'm doing wrong.

I have attached the files in this post

Thank you for any help.
Attached Files

Where are zipfiles stored?

$
0
0
Hello everyone, I am new to Pentaho. I am creating a job where I am trying to zip all the pdf files in a folder to Test.zip and then move the existing pdf files to archive folder. I see that once I run the job, the pdfs are moved to archive folder but I dont see the zip file generated in the folder. Where is the zipfile generated? Where is the setting for the zip file location? Thank you in advance.
Attached Images

Pentaho BI Server UI does not display properly

$
0
0
Recently I changed some properties file to point to new DB URL. After I restarted Tomcat the UI does not display correctly anymore.
There is another copy of Pentaho BI Server in the UAT environment and everything is displayed correctly there. If anyone know where the images are stored, I can do a comparison with UAT environment.

UxZPb.jpgAny help will be greatly appreciated.

I am using biserver-ce-4.8.0-stable.
Attached Images

the simplest thing that could NOT possibly work

$
0
0
I've been coding and working with tools for a long time. But I have to say, this one is cruel.
I have hooked up the 'text file input' to a folder and a file name for a csv file with data in it. I have set the file type to csv and the separator to comma.

I can list the file name.

I can preview and I can debug. But many times I have to select the icon to preview or get the dreaded 'you don't know what you're doing and I'm not going to tell you what it is' error.

And I have to NOT select the icon to debug or get the dreaded error (you know the one but I'm not going to tell you which one it is).

In dozens of attempts, I have not been able to preview any rows under any circumstance.

All the errors are: Text file input.0 or worse.

2016/10/05 23:05:58 - Spoon - Transformation opened.
2016/10/05 23:05:58 - Spoon - Launching transformation [textfileinputtest]...
2016/10/05 23:05:58 - Spoon - Started the transformation execution.
2016/10/05 23:05:59 - Spoon - The transformation has finished!!
2016/10/05 23:06:23 - Spoon - Processing of transformation stopped.
2016/10/05 23:11:04 - /Volumes/Metro/_gis/listoperator/KTL/textfileinputtest.ktr : textfileinputtest - Dispatching started for transformation [/Volumes/Metro/_gis/listoperator/KTL/textfileinputtest.ktr : textfileinputtest]
2016/10/05 23:11:04 - Text file input.0 - Opening file: file:///Volumes/Metro/_gis/listoperator/CSV/wntka-terr/wntka-terr-incdnc-sect-1.csv

Every thing I have tried to do in a week or so has been exactly by following instructions in the best books. But not one step has worked because.... I don't know why.

So I gave up and just tried one simple thing: read a csv file.

So this is open source: spend months on learning maybe one quarter of what you need because every stinking field requires hours of trial and error after reading all the cheerful instructions and glowing results.

But of course they're not on a deadline like i am. And I allowed a generous amount of time for research because I've been doing this a long time. But apparently 20 years is not long enough for open source.

Anybody got reason for hope?

Issue with parsing dates

$
0
0
I have a 'Modified Java Script Value' step with string looks like:
Code:

vdate = str2date("Mon Oct 03 14:53:49 FET 2016","E MMM dd HH:mm:ss Z yyyy","EN","GMT");
It successfully runs with java 1.7.0_55, but with java 1.7.0_80 I get an error: "Could not apply the local format for locale EN with the given format E MMM dd HH:mm:ss z yyyy on the string for Tue Oct 04 09:28:40 FET 2016 : Format.parseObject(String) failed (script#28)".
Could anyone help me how to change locale to a proper one?

use of data multi-tenancy feature in community edition pentaho bi server

$
0
0
Hi,

can anyone help me with the data multi-tenancy feature. Is it possible to achieve this feature in community edition? At present i am using BI server 6.1.

How to work on call DB procedure step in pdi 4.3

$
0
0
I am working on call DB procedure for the first time , i am trying to get data from stored procedure from ms sql server, i have all the access and i am able to make connection.

And in call Db procedure i am setting a connection then selecting the proc-name and passing orderDate as name , IN as direction and Type string in parameters.

I have used generate rows before call DB procedure in which i have set value for orderDate and passing it to call DB procedure.


can someone knows what i am missing and where to set the output fields which i want to extract ? And what is the full process to make this work?

Thanks in advance,
:confused:
Attached Files

RSS input issue when feeding URLs from a field

$
0
0
Hi,

I have just started using Pentaho, so a newbie question: I use RSS Input step to process RSS feeds and put them into a Mongo DB.
When I manually specify URLs in the URL list everything works as expected(I get 19 feeds):

Capture.jpg

However when I specify URL field to use:

Capture.jpg

I only get feeds for the two root URLs (screenshot of MongoDB output collection):

Capture.jpg

Please help. First task at a new job... :( I am a C# dev.

Thanks!
Attached Images

Outer Join with a non equal key comparison

$
0
0
Hi Experts,
I'm newbie with Pentaho and trying to perform an outer join where the key has a <= comparison in one of the columns. The only way to perform this I can think of involves a lot of steps so I'm asking for help in case there's an easier way to perform this that I'm not aware of.

I'm trying to perform an outer join between two datasets, say:
Table1
Key Time ColA
A T1 VALUE1
A T2 VALUE2
B T3 VALUE3
C T3 VALUE5
D T4 VALUE8

Table2
Key Time ColB
A T11 VALUE4
C T21 VALUE6
C T22 VALUE7
D T41 VALUE9
D T51 VALUE9

Where T1 < T11 < T2, T21 < T22 < T3 and T41 < T4 < T51

So the final dataset would be:

Key t1_time ColA t2_time ColB
A T1 VALUE1 T11 VALUE4
A T2 VALUE2 NULL NULL
B T3 VALUE3 NULL NULL
C T3 VALUE5 NULL NULL
D T4 VALUE8 T51 VALUE9

My outer Join, in Oracle SQL would be written like this:

Code:

SELECT t1.Key, t1.Time t1_time, t1.ColA, t2.Time t2_time, t2.ColB
FROM Table1 t1,
        Table2 t2
WHERE t1.Key = t2.Key (+)
AND t1.Time <= t2.Time (+)


​I'm trying to replicate this inside a transformation, but I don't know the optimal way to do this with Pentaho, because from my point of view it is taking too many steps.

I can't use a vanilla Merge Join step, because of the t1.Time <= t2.Time condition. Using a Database Join takes too much time.
So I decided using a Merge Join just using the Key column so I get this Dataset:
Key t1_time ColA t2_time ColB
A T1 VALUE1 T11 VALUE4
A T2 VALUE2 T11 VALUE4
B T3 VALUE3 NULL NULL
C T3 VALUE5 T21 VALUE6
C T3 VALUE5 T22 VALUE7
D T4 VALUE8 T41 VALUE9
D T4 VALUE8 T51 VALUE9

If I add a Filter step with the condition t1.Time <= t2.Time, I loose A - T2 row because the merge returns only that row.
So I need to add steps to transform t2_time and ColB to NULL when t1.Time <= t2.Time (using Modified Java Script Value? or is there a bettter way to achieve this) so I get this dataset:
Key t1_time ColA t2_time ColB
A T1 VALUE1 T11 VALUE4
A T2 VALUE2 NULL NULL
B T3 VALUE3 NULL NULL
C T3 VALUE5 NULL NULL
C T3 VALUE5 NULL NULL
D T4 VALUE8 NULL NULL
D T4 VALUE8 T51 VALUE9

To get rid of this kind of duplicate data:
Key t1_time ColA t2_time ColB
C T3 VALUE5 NULL NULL
C T3 VALUE5 NULL NULL

I need to add a SORT step getting rid of duplicate values, and then I need to take into account that I have this:
Key t1_time ColA t2_time ColB
D T4 VALUE8 NULL NULL
D T4 VALUE8 T51 VALUE9

So I have to filter the first row because I had in Table2 a row with a previous time value, but only if I have other rows, because for my B row in my first example it has to stay.

Is there some easier way to perform this?
Later I'll add a sample, for now I hope I have explained my problem.
Regards
Attached Files

Table on multiple columns

$
0
0
Hi,

i'm new of Report Designer.
I'm looking for a method to render table on multiple columns.
For example:

Records from query:
name1, value1
name2, value2
name3, value3
name4, value4

Table resulting:

name1 value1 name2 value2
name3 value3 name4 value4

or alternatively:

name1 value1 name3 value3
name2 value2 name4 value4

I found a method using 2 subreport with different query, but is a very limited method.
Someone can help me?

Thank you
Viewing all 16689 articles
Browse latest View live


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