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

Missing documentation for Dimensions


Split rows into different streams based on grouping attribute

$
0
0
Hello,
I have different employees and their department ID's. I have sorted them based on their department ID's and now I want to split the employees with same department ID's into different streams. Can anyone suggest me how to achieve that?

Text file output generates a huge file

$
0
0
Hi

I've generated a very simple transformation to obtain a CSV file from a database table. The table is 6 GB and usually the generated CSV using SQL takes 400 MB.
Using Pentaho Kettle the file filled all my disk space 46 GB !!!!!

is that a bug?

xaction: read and display session variable (or default value)

$
0
0
Hi,
Using pentaho user console, pentaho 5.4, enterprise edition.

I am attempting to use an xaction (set-session-id.xaction, attached) to set a session variable based on the current logged in user console user.
The security input principalName is used to retreive the username of logged in user.
This is used in an using an SQLLookupRule action-definition to read a corresponding id from a database.
The id is output as a session variable.

The set-session-id.xaction when run from within the user console, displays the expected result on screen.
I want to check that this id value is actually stored in the session.

To do this I thought of using another xaction eg. test.xaction to take the session variable as an input and output it to screen.
If the session is blank or not set, a default value will be returned.

So...
Can anyone give me a template xaction to read and output a session variable to use a basis for my test.xaction?
Its the action definition im having trouble with. I guess a javascript rule would be best for this?

Sorry for the noob question, documentation has been enough to get me started but im struggling to make progress...

Thanks
Jason
set-session-id.xaction
Attached Files

Dynamic height and text wrap problems

$
0
0
Hi all.
I'm newby in PRD.
I try to design report with text two fields: one contains wery long word, other contains large text.

After report creation and viewing I see two problems:
1. report engine don't breake long words into several rows but cut it and append '...' as curring signature. I need to breake (wrap) long word and place parts in several rows of field if that long word could not place into one row inside field.
2. report engine suddently work with dynamic firlds. lines and bands:
a) after setting dynamic-height property to true PRD adjust visual height of vertical lines and band (height property before was manually set to 0);
b) as result I have too tall report output row for short text (with space between rows) and not enough height of vertical lines for report row contains large text field (vertical lines shorter then report output row height)

Please help!

In pictures:

Two fields: tema for long words and opisanie for large text, Band layout set to Row.
Clipboard01.jpg


Dynamic-height and Height settings
Clipboard02.jpg


First output row too tall and has large space. First column (tema) value cutted ('...' at the end) but not placed in few rows of text inside field.
Clipboard03.jpg


For very large text in field opesanie not enough height of vertical lines wich must be dynamically adjusted.
Clipboard04.jpg
Attached Images

Authentication on Mondrian 4.2

$
0
0
Hi,
I'm using Mondrian 4.2 library embedded in my springMVC application. I want to give a xmla access for my clients to use MS excel (http://sourceforge.net/projects/xmlaconnect/). Now, i need to control access with password. In datasource definition of mondrian, it has <AuthenticationMode> tag, but according documentation: "<ProviderType> and <AuthenticationMode> are ignored because the XML/A implementation currently only supports 'MDP' and 'Unauthenticated'.". How i can control access?

Report executes once final param is entered, and UI largely freezes until it's done

$
0
0
Hi, I'm trying to figure out if this is normal behavior or not. Frequently, when filling out parameters on the User Console scheduling popup, the widgets inside the gray parameter area become frozen, and the Next button at the bottom of the popup is disabled, despite all parameters being specified. This happens to coincide with the report being executed, according to my Vertica query monitoring. This is concerning because it doesn't happen every time, ceteris paribus. It happens even with a fresh Ubuntu bi-server-5.4 install with default configs, etc., right out of the zip archive. I think part of the problem is our Vertica setup, because the query sometimes fails, but I'd like to understand why the report is running before I tell it to. It might make sense to do this in order to cache the report structure or something, but I would expect that the developers would naturally make this a background operation that doesn't freeze the UI.

It seems like a report should only run either at the time of a scheduled run or after I click Ok to finish scheduling a report. And in both cases, even if there are all kinds of ugly errors in the background, this should not adversely affect the UI. I would prefer even a popup saying "Something went wrong," or "By the way, we're going to go ahead and freeze the UI while we run your big report for a few minutes, for no apparent reason. Deal with it."

Can someone please elucidate this for me? And where in the github repo can I find the source for this? I'm expecting to see an AJAX call that makes the report execute when all parameters are specified.

Thanks a lot,
Alex

cas security

$
0
0
i would like to configure pentaho ce to use cas to implement single sign on .
In the penatho documentation there is a reference to a file applicationContext-spring-security-cas.xml .
In the pentaho 5.3 binary distribution this file does not exists .
So my questions are :

the pentaho 5.3 ce support the integration with cas or not ?
if yes where can i found this file ?

A lot of other application support teh integration out of the box ( like jasperserver and lifeary to name a few )

thanks for any naswer

Set column name as the first value

$
0
0
I have this table with 3 columns ('column_1', 'column_2', 'column_3'):

column_1 column_2 column_3
name 1 name 2 name 3
value 1 value 2 value 3
value 4 value 5 value 6

I'm tryng to write an ETL to get out a table with 3 columns, which name is 'name_1', 'name_2' and 'name_3' (the name of the value of the first row):

name 1 name 2 name 3
value 1 value 2 value 3
value 4 value 5 value 6

Anyone could help me?

Thanks!

API Outputtype for PNG includes HTML

$
0
0
When i request my report via its API endpoint (http://10.10.10.255:8080/pentaho/api...image-type=png) and I inspect the contents of the response it appears as such.

Code:

<html><script id="tinyhippos-injected">if (window.top.ripple) { window.top.ripple("bootstrap").inject(window, document); }</script><head>    <title> </title>
    <meta name="generator" content="Pentaho Reporting Engine Classic version 6.0.0.0-353.-1">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="/pentaho/getImage?image=style856725244967913439.css">
  </head>
  <body>
    <table cellspacing="0" cellpadding="0" class="style-0">
      <colgroup><col style="width: 154pt">
      <col style="width: 280pt">
      <col style="width: 34pt">
      </colgroup><tbody><tr style="height: 101pt">
        <td class="style-1">&nbsp;</td>
        <td style="font-size: 1pt">&nbsp;</td>
        <td style="font-size: 1pt">&nbsp;</td>
      </tr>
      <tr style="height: 190pt">
        <td style="font-size: 1pt">&nbsp;</td>
        <td valign="top" class="style-2"><img src="/pentaho/getImage?image=picture8202531613524779108.png" border="0" class="style-3"></td>
        <td style="font-size: 1pt">&nbsp;</td>
      </tr>
      <tr style="height: 357pt">
        <td style="font-size: 1pt">&nbsp;</td>
        <td style="font-size: 1pt">&nbsp;</td>
        <td style="font-size: 1pt">&nbsp;</td>
      </tr>
    </tbody></table>
 




</body></html>

The documentation found here states that the report should be returned as "A single page report as PNG". Granted, there is an image element in the html with the appropriate link but I was expecting the raw image link as the return value. Am I missing something here?

-James

Not able to read data from transformation1 as the input to the transformation 2

$
0
0
screenshots:

Main Job:
Main.jpg
Transformation1:
T1_customer inputmapping.jpg
Transformation 2:
T2_mapping.jpg



Dear All,

I have main job that includes 2 transformations in sequence:

T1: CUSTOMER_INPUT_MAPPING transformation: Here I am getting the CSV input data to “copy rows to results”.

Now I want to read the “copy rows to results” from “CUSTOMER_INPUT_MAPPING transformation” as the input to the Transformation2 :“Field dependency Mapping”.

I am using here “get rows from result” .

Somehow the results of the “CUSTOMER_INPUT_MAPPING transformation” step are not being read as input to the “Field dependency Mapping”.

The individual transformations are working fine. Is there help why the results of first transformation are not being read in the second transformation?
Attached Images

How to union parts of data from multiple files

$
0
0
Hi,
Please help me to solve next issue

Fore example I have 2 (or more) csv files with next structure:

file1.txt
#abcd0001
12345,1,1
12345,1,1
23456,1,1
12345,1,1
5678,1,1
2345,1,1
#abcd0003
02345,1,1
02345,1,1
34567,1,1
02345,1,1
56789,1,1
23456,1,1

etc...

file2.txt
#abcd0002
123456,1,1
123456,1,1
234567,1,1
123456,1,1
56789,1,1
23456,1,1
#abcd0003
02345,1,1
02345,1,1
34567,1,1
02345,1,1
56789,1,1
23456,1,1

etc...

I need to union this two files in one, something like this:
result.txt
#abcd0001
12345,1,1
12345,1,1
23456,1,1
12345,1,1
5678,1,1
2345,1,1
#abcd0003
02345,1,1
02345,1,1
34567,1,1
02345,1,1
56789,1,1
23456,1,1
02345,1,1
02345,1,1
34567,1,1
02345,1,1
56789,1,1
23456,1,1
#abcd0002
123456,1,1
123456,1,1
234567,1,1
123456,1,1
56789,1,1
23456,1,1


#letters_digits
- it's like name of sections. And I need to union similar sections from different files and put it in one line by line.

Is it possible to solve in PDI?

Pentaho 6.0 backward compatibility with Java 7

$
0
0
Hi, I have downloaded Pentaho Kettle 6.0 and it seems to work fine with Java 7. My client application server is currently using Java 7 72, but they will upgrade at some point in the future. It makes most sense to use Pentaho 6.0, since once they upgrade Java it should still work. So I just wanted to make sure that 6.0 is fully compatible with Java 7 and that it will not generate some errors. Any help, highly appreciated. Thanks.

Use token or variable in Get data from XML Loop XPath

$
0
0
Hi

I am trying to create a transformation that calls a web service and places the returned data into a table. The repeating node in the web service xml has a variable node name, I don't know what it might be called. I created a Modified Java Script Value step that reads the xml and places the node name into an output field.

In my Get data from XML step I tried to use both fields and variables in the Loop XPath property to specify the node name but can't seem to get either to work.

My question is simply how do I specify a Loop XPath parameter the has a variable value?

Filter an input file on the length of a field

$
0
0
Hello all,

I'm fairly new to PDI. Fairly new? I made a couple of jobs and transformations, but all of them at a basic level.
Now I received a "simple" question from my end user. He has a CSV file with in one of the columns numbers with a length of 4 and with a length of 5.
He only needs the length of 4, so I want to filter the CSV in PDI and use the rows which have 4 length in the column.

I have tried a lot of things, but non has given me the result I need.

Can somebody help me with this one? It can't be hard, at least I think :rolleyes:

Can I execute begin for loop in Execute sql step?

$
0
0
Begin

for .....

loop

Update statement which update multiple rows.

end loop;

end;

--------------------------------------------------------------

Getting error:

ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : An error occurred executing this job entry :
2015/12/17 13:06:51 - SQL - Couldn't execute SQL: BEGIN
.
.
.
.
ORA-06550: line 7, column 95:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:


* & = - + ; < / > at in is mod remainder not rem return




Thanks,
Nishank

Add new fields to "user" table in hibernate DB

$
0
0
I added new fields to "user" table in "hibernate" DB.
And I would like to use these fields via "PentahoUser" object.

Although I modified "IPentahoUser.java" and "PentahoUser.java", they cannot be recognized.
How can CRUD processes for these fields be done via "PentahoUser" object?

Any help is appreciated and thanks in advance.

How to implement a user defined function

$
0
0
I need to calculate the T-value (or P-value) for a linear regression. With MDX I can nicely calculate the linear regression using the LINREGSLOPE() function, but I can't calculate the result of a t-test. For that I'm trying to implement a user defined function using this guide.

According to this guide there are two ways to do this. The first is an inline implementation after which you have to declare it in your schema. The second one is to package the function in a Jar.

Questions: If I would go for the inline solution, where would I put the source code? In the Schema Workbench I can add a user defined function, but it only asks me for a ClassName. That leads me to believe that using the Schema Workbench I can only go for the second solution, and that is packaging my function in a Jar. Now, I've done that but where do I put the Jar? I guess it has to be put somewhere in the Pentaho folder tree, but I don't have a clue where.

Any help would be much appreciated.

Issue with performance graph

$
0
0
Hello,
I performed all the configurations needed for performance monitoring as per the steps provided on the link-
https://help.pentaho.com/Documentati...Y0/0E0/000/000
However, after executing the transformation, I am unable to view the graphs for each step in the 'Performance Graph'.
I am attaching the transformation file. Can anybody help me out with this issue?
Attached Files

Need advice: PDI Version and File repository

$
0
0
Hi,
I’m trying to figure out how to get a topview/high level view of all my transformations/job in file based repository in a given folder with which versions they have
The ideal would be if I could open the repository, choose a folder with transformations, then see what version the current transformations are in a column next to date modified column. It would be handy to be able to see the status too.
Name | type | date modified | version | status

To my knowledge I have to open a spesific transformation or job to find out the version and status information, but that does give me a quick way to look at this information.

Does anybody have an idea if this is possible to achive in PDI without going to a Database based repository?
Kind regards
Viewing all 16689 articles
Browse latest View live


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