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

Kitchen tells me Central Log Store is not initialized!!!

$
0
0
Hi guys,

I recently switched over from PDI 5.1CE to 5.3CE.
I noticed that I can't run some jobs in Kitchen anymore because whatever. It just throws above error.
It was independent on which host system (I tried three maschines but well - all of them we're windows systems so this appears to happen at least with the batch files)
Before I post all the pain of my Kitchen calls and so on I found this Jira ticket describing it: (I have no jira account, so please be gentle that I post here)
http://jira.pentaho.com/browse/PDI-13844

Exactly what happens to me. But no solution so far.
After countless desperate tries to get it work I found what triggers the error by reading the last three exception lines:
Code:

at org.pentaho.di.pan.CommandLineOption.parseArguments(CommandLineOption.java:418)
at org.pentaho.di.kitchen.Kitchen.main(Kitchen.java:197)
... 5 more

Kitchen runs every job fine as long as you don't hand it parameters.

Meaning:
Code:

Kitchen.bat /file:c:\data-diagnostics\PDI\development\zombies\zombies_top.kjb /param:START_DATE=2015-03-01

Fails

runs fine

By looking at what the batch makes out of the call it is:
Code:

"C:\Program Files\Java\jre7\\bin\java.exe" "-Xmx512m" "-XX:MaxPermSize=256m" "-Dja
_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\p
taho.di.kitchen.Kitchen /file:c:\data-diagnostics\PDI\development\zombies\zombies_top.kjb /param:START_DATE 2015-03-01



My assumption: the batch eleminates the equal sign after the parameter name and voilà: Kitchen is not able to parse the argument any more.

Now I'm open for suggestions, how I can solve that without resigning the parameters in the call.

Thanks for listening ;)

Cheers,
Markus

Edit: This happens with 5.4 CE, too

Publish Error: Repository service not found on sever

$
0
0
Hi

At the time of publish schema i got error "Publish Error: Repository service not found on sever"
i am using schema workbench. In that i create my schema and now i want to publish it.

Change Listener in Mondrian

$
0
0
in my web app I am using mondrian-3.2.1.13885 to generate a pivot table showing the result of mdx query on the underlying mysql database table. Query and mondrian shema are following. What I wanted to do is to mark values of the measure Downtime that were changed since the last opening of pivot table yellow. For example the measure value for Date 2011-11-31, Machine 1500, Level AB, Code K and Item T is 150. This value will be changed in my application to 200. When opening the pivot table I want to see there value 200 marked yellow.

Is there a possibility to do this in mondrian? Could somebody give me an example? Thank you in advance

Mondrian Schema:

Code:


<Cube name="ExampleCube">
<Table name="example_table"/>
<Dimension name="Date">
    <Hierarchy hasAll="true" allMemberName="All Date">
        <Level name="Date" column="date" uniqueMembers="true"/>
    </Hierarchy>
</Dimension>
<Dimension name="Machine">
    <Hierarchy hasAll="true" allMemberName="All Machine">
        <Level name="Machine" column="machine" uniqueMembers="true"/>
    </Hierarchy>
</Dimension>
<Dimension name="Level">
    <Hierarchy hasAll="true" allMemberName="All Level">
        <Level name="Level" column="level" uniqueMembers="true"/>
    </Hierarchy>
</Dimension>
<Dimension name="Item">
    <Hierarchy hasAll="true" allMemberName="All Item">
        <Level name="Item" column="item" uniqueMembers="true"/>
    </Hierarchy>
</Dimension>
<Dimension name="Code">
    <Hierarchy hasAll="true" allMemberName="All Code">
        <Level name="Code" column="code" uniqueMembers="true"/>
    </Hierarchy>
</Dimension>
<Dimension name="Comment">
    <Hierarchy hasAll="true" allMemberName="All">
        <Level name="Comment" column="comment" uniqueMembers="true"/>
    </Hierarchy>
</Dimension>
<Measure name="Downtime" column="downtime" aggregator="sum" formatString="Standard" visible="true"/>
</Cube>
</Schema>

Query:

[CODE]{[Item].[All Item]} * {[Measures].[Downtime]} ON columns,

{
Code:

.[All Code]} * {[Comment].[All Comment]} ON rows

from [ExampleCube]

WHERE {([Date].[2011-11-31], [Machine].[1500], [Level].[AB])}

Merge Rows (diff) - Detects identical rows as deleted

$
0
0
Hi folks,

I'm using Merge Rows to identify update rows from a source table to my staging table. It holds some masterdata with no updated/created timestamps.
Now I want to validate the output and face a strange behaviour:
As long as all is the same, it works. Well done PDI!

When a row is deleted in the source, it gets marked deleted by merge rows.
But all rows coming from the reference data after that are marked as deleted as well.
And all rows coming from the compare data after that are marked as new.

Result in Synchronize after merge is: If a record in the compare data is missing, all rows after that get deleted and inserted again.

Is that an expected behaviour?

(PDI 5.3.0 CE)
Attached Images

sub-toolbar is missing

$
0
0
I am trying to go thru the pentaho Lesson 6 Enriching data.

It talks about after pressing the quick Launch button, there should be a sub-toolbar; and to press STOP to end the preview.

I don't see this sub-toolbar. I am using Kettle - Spoon General Availability Release - 5.4.0.1-130.

How do I enable this toolbar?

Thanks in advance.

FTP Get Adapter ?

$
0
0
Guys - in version 5.4 I see an SFTP Put transformation adapter, but what about the SFTP Get ?
I need to pull files from a secure FTP location on an hourly basis.
Do I need to create a custom plug-in to do this ?
Why is there a PUT with no GET ?
Why didn't they architect this more abstractly and provide a checkbox for GET or PUT ?

How to us "Prepare field layout" Step

$
0
0
I have a "Prepare field layout" step in my transformation.

TABS:
1. "Select & Alter" shows the input columns including "POSTALCODE" and "POSTALCODE_1"
2. "Remove" tab I have fieldname "POSTALCODE"
3. "Meta-tab" shows both of the fields above; I added "POSTALCODE_1" --> "Rename to --> "POSTALCODE"
I defined type='String',Length=9

When I run the transformation I get the following error:
Prepare field layout.0 - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : Couldn't find field 'POSTALCODE' in row!

What am I doing wrong?

Version of Spoon is 5.4.0.1-130

clickAction for legend

$
0
0
Hi there,

I am currently developing a dashboard which makes use of a bar chart as a visual filter mechanism (==>the user can select specific components from a stacked bar chart und dependent tables and charts are filtered arcordingly). To keep things simple I want to implement a single selection as detailed here. By doing so the user can select a single category (by clicking on the baseAxis) or a series within a category (by clicking on a bar). What I also want to add is the possibility to filter/select an entire series. To do so I want to select a series from the legend. However, there is no clickAction for the legend which I might use for this purpose.

Any idea how to make the legend "clickable" and where to put code similar to this:

Code:

legendClickAction = function(scene) {
      this.chart.data.replaceSelected(scene.datums());
      this.chart.updateSelections();
 };

Thanks for your support,

best
Felix

How to compare two fields coming from two different excel sheets ? help me out

$
0
0
one excel workbook is having multiple sheets. Now the requirement is I need to compare one field of one sheet with another field in another sheet. If I can do this I may extend the code for comparing more than one field. Could you please help me out in solving this.

Sending Application Name with MS SQL Server Connection String

$
0
0
Is there a way to set the application name (typically done through the connection string) to a MS SQL Server? Have tried inserting as one of the parameters on the options tab, however the app_name once connected is still jTDS. Using context information as a stopgap solution, but would like ability to utilize the connection string fully if possible.

Thank you

Is it possivle to get a user password using the RESTful api?

$
0
0
Hello,

I need to get the password of a user using the RESTful api. I use this in an external webapp in order to have the same users in both places. The objective is to access some dashboards and use some session variables. The problem is that the webapp admin can modify a username (here I think the only option is to delete the old user and create a new one, but I need to keep the pentaho password). Another situation is that if you are deleting a user from both sides and something fails after delete it from pentaho, this should be created again with the same password.

So, it is possible to get the password?

Change plot2 legend markers

$
0
0
Hi there,

I managed to adjust the markers of two plot2 line-graphs within a bar chart by running the following code as pre execution of the bar chart :

Code:

    var cd = this.chartDefinition;
    cd.plot2Dot_shape = pvc.finished( function(scene) {
        var dotShape;
       
        if (scene.atoms.series.key == "Vorjahr") {
            dotShape = "triangle";
        } else {
            dotShape = "circle";
        }


        return dotShape;
    });

Problem is that the markers in the legend are not adjusted accordingly. Any idea how to fix this?

Thanks a lot,

Best
Felix

Insert/ Update Step in Pentaho -- what exactly is the query?

$
0
0
Hi there--

I'm trying to turn off table locks (use a nolock SQL statement) because MS SQL Server apparently doesn't like parallel updates---

Anyway I'm trying to duplicate Pentaho's Insert/ Update step into an Execute SQL statement.


I'm curious --- what does Pentaho use as the query syntax for it's Insert/ Update statement? I'd turn on transaction recording on the DB, but I don't have the permission to.


Myself -- I was going to write a Merge Into statement (to duplicate MySQL's insert, on duplicate update) ... however my god it's unwieldy ... I'd have to "triplicate" each field name in the arguments -- I have 25 columns so that would mean 75 different '?' symbols inserted.

Any ideas of Pentaho might use a syntax that's somewhat simpler?

Upload files to FTPS step Missing

$
0
0
Hi Folks,

I have 5.4.0.1-130 version.

Somehow i wanna upload a file via FTPS. From reading this forum it recommends to use "Upload files to FTPS step",
but it doesn't exist, can someone please help for this.

Thx ~~~~
Attached Images

Resut mechanism

$
0
0
Hi,

i am confuse about what is mechanism logic to store the data in the result in transformation or job.
E.g.
case 1: JOB: STRT->Transformation 1->T2->T3
T1: DATA INPUT->COPY ROWS TO RESULT
T2:GET ROWS FROM RESULT->COPY ROWS TO RESULT
T3:GET ROWS FROM RESULT->OUTPUT FILE
RESULT:
T1 STORE THE DATA IN THE RESULT
T2 WILL OVERWRITE THE DATA IN THE RESULT
T3 will just get the t2 data from result

case 2: START->T1->JOB2->T2
T1: DATA INPUT->COPY ROWS TO RESULT
JOB2:GET ROWS FROM RESULT->COPY ROWS TO RESULT
T3:GET ROWS FROM RESULT->OUTPUT FILE
RESULT:
T1 STORE THE DATA IN THE RESULT
T2 WILL APPEND THE DATA INTO THE RESULT
T3 will just get the T1 AND t2 data from result

case 3: START->T1->JOB2->JOB3
START->T1->JOB2->JOB4

T1: DATA INPUT->COPY ROWS TO RESULT
JOB2: GET ROWS FROM RESULT->LOGIC->COPY ROWS TO RESULT->OUTPUT FILE
JOB3: GET ROWS FROM RESULT->LOGIC->COPY ROWS TO RESULT->OUTPUT FILE F2
JOB4:START->T4->T5
T4: DATA INPUT->COPY ROWS TO RESULT
T5::GET ROWS FROM RESULT->OUTPUT FILE F3


RESULT:
The data in the F3 just has the data in T4
The data in the F2 has the data in T1 and job2.
attached file



anyone knows why there is difference data in the result?

where i can check the source code?
Attached Files

Mondrian Error:Internal error: [Date].[2015].[7].[30] not found among siblings

$
0
0
Hi all,
I m getting unexpected error while executing bunch of mdx queries using mondrian.jar in my application. It has been run successful for queries for the same date member, in the middle getting this error. After a while for some queries with error, it wont give any error for the sub sequent mdx queries.

When I use the same date in aggregate function also throws an error like
Caused by: mondrian.olap.MondrianException: Mondrian Error:Internal error: sibling iterator did not hit end point, start=[Date].[2015].[7].[4], end=[Date].[2015].[7].[30]

Another error is with the measure, I have created a measure with the same name. Still it throws an exception like

Caused by: mondrian.olap.MondrianException: Mondrian Error:MDX object 'Measures.[MinAmt_10001]' not found in cube 'CAS'

There is any entry in database with the corresponding date values. Schema and everything is looks fine. When I re-run those queries, it went well without any error.

Please give some solution.

Thanks

Mondrian Scheme Not accessable in CDE

$
0
0
Hello,

I was trying to design a mondrian cube in Pentaho CDE Server. I designed the schema using Schema Work Bench and published it to Pentaho CDE server. However when I try to use it in datasources, it says the Mondrian cube name is not available.

Please suggest the solution and share the relavent tutorials.

Thanks,
Ravindra Gullapalli.

Print a .prpt directly to printer available to pentaho server

$
0
0
I'm attempting to execute and print a report (.prpt) via URL directly to a printer available to the server running pentaho. I don't want to send it to the client accessing the report.
I've tried the example from the 2009 thread here with no luck - I've tried variations to an xaction to no avail. This is my latest attempt - anyone have suggestions/corrections?
Code:

<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
  <version>1</version>
  <logging-level>DEBUG</logging-level>
  <documentation>
    <description>%description</description> 
    <help>prpt printing</help> 
    <result-type>report</result-type> 
  </documentation>
        <inputs>
                <outputType type="string">
                        <default-value>application/pdf</default-value>
                        <sources>
                                <request>outputType</request>
                        </sources>
                </outputType>
                <NeededValue type="string">
                        <default-value/>
                        <sources>
                                <request>NeededValue</request>
                        </sources>
                </NeededValue>
                <printer-name type="string">
                        <default-value/>
                        <sources>
                                <request>printername</request>
                        </sources>
                </printer-name>
                <default-printer type="string">
                        <default-value/>
                        <sources>
                                <session>printername</session>
                        </sources>
                </default-printer>
        </inputs>
        <outputs>
          <myReport type="content">
                  <destinations>
                        <response>content</response>
                  </destinations>
          </myReport>
        </outputs>
        <resources>
                <reportDefinition>
                        <solution-file>
                                <location>MySpeshul.prpt</location>
                                <mime-type>application/zip</mime-type>
                        </solution-file>
                </reportDefinition>
        </resources>
    <actions>
    <action-definition>
      <component-name>SecureFilterComponent</component-name>
      <action-type>Prompt for Report Format</action-type>
      <action-inputs>
        <outputTypeList type="property-map-list"/> 
        <outputType type="string"/> 
      </action-inputs>
      <component-definition>
        <selections>
          <outputType style="radio">
            <title>Select Report Format</title> 
            <filter value-col-name="report-output-type-id" display-col-name="report-output-desc">outputTypeList</filter>
          </outputType>
        </selections>
      </component-definition>
    </action-definition>
    <action-definition>
        <component-name>PrintComponent</component-name>
        <action-type>print</action-type>
        <action-inputs>
                <printer-name type="string"/>
                <default-printer type="string"/>
        </action-inputs>
        <action-outputs>
                <printer-name type="string"/>
                <default-printer type="string"/>
        </action-outputs>
        <component-definition>
                <handle-all-prompts>true</handle-all-prompts>
        </component-definition>
    </action-definition>
    <action-definition>
      <component-name>SimpleReportingComponent</component-name>
      <action-type>Generate the report using a solution path to the report definition</action-type>
      <component-definition/>
      <action-resources>
        <reportDefinition type="resource"/>
      </action-resources>
      <action-inputs>
        <outputType type="string"/>
        <NeededValue type="string"/>
        <printer-name type="string"/>
      </action-inputs>
      <action-outputs>
        <outputstream type="content" mapping="myReport"/>
        <printer-name type="string"/>
      </action-outputs>
    </action-definition>
    </actions>
</action-sequence>

I access it with:
Code:

https://mypentahoserver/pentaho/ViewAction?solution=mystuff&action=test.xaction&path=miscreports&printername=HPLaserjet&NeededValue=1234XXXX

Need help with dynamic LIMIT in MySQL query

$
0
0
Hello,

I want to design one dashboard with some filters. I am using MySQL JNDI connection as datasource.

Now my requirement is, After selecting different filter values, I want to get only lowest 5% record from incoming data set. That means, after applying all filters if number of incoming records is 400 then I want to take only first 20 records.

Usually we use LIMIT function in mysql, but here I want LIMIT function to get value during run time.

Please help. Thanks in advance.

Need transform to access file modified date

$
0
0
The Copy Files job adapter can only place the current timestamp into the file name.
What I really want access to is the Modified Date property of the file....and to then append that to the file name.

What Copy Files needs is a dropdown with Modified or Created and a checkbox with caption : [ x ]Rename with File Date

Do I need to write a Javascript transform 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>