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

Race Condition on rows

$
0
0
Hi,
maybe it's absolutely easy, but I could not find a solution so far.

My transformation is reading up to 5000 rows from a table in a staging area.
Then it does some transformation steps and finally it's populating the data to some tables in the warehouse schema.

It is absolutely crucial that the rows never change their order.
The select statement is following a chronological index.
I used order by and force index.

So after the Table Input step the row set is in the right order (I hope so...).
At least it is if I execute the select manually...

But I can see, that in the Insert/Update step the race has not been decided :(

Is it really necessary to sort the sorted result again in a temp file in a Sort step?

I tried to get rid of duplicate rows, but that doesn't work either. It just drops the 'wrong' rows. Means, it keeps the oldest and skips the newest.

So what is the right way to run a transaction, so that the output happens in exactly the same sequence as the input?
Or, as an alternative, that I can sort out the oldest rows?

Thanks for any help
Dieter

Help with a transformation

$
0
0
Hi everyone, Im new with Kettle and i need your expertise to solve the next transformation:

I need something like this.

id Date Expected Result
1
07/02/2014
07/02/2014
1
10/02/2014
07/02/2014
1
12/02/2014
07/02/2014
1
14/02/2014
07/02/2014
1
31/03/2014
31/03/2014
1
02/04/2014
31/03/2014
1
04/04/2014
31/03/2014
2
05/04/2014
05/04/2014
2
07/04/2014
05/04/2014
2
08/04/2014
05/04/2014

I need that if the difference between the date of the row and the row before is less than 7 days, keep the minimum value, if the difference of dates is >7 keep the date of that row. If the "id" change always keep that date and take it as the new minimum date. I hope my English is not so bad and i have explained myself, thanks in advance!!

Connect to a server

$
0
0
Is there a Step (Spoon) I could use to connect to a server and download the output generated to my PC? Here is exactly what I am trying to do:

When I copy paste this link in web browser(x - ip host and port number):

http://XXX.xx.xx.x:xxxx/ws/spaces/1hpv/connections?q="interaction id":1e35bda0e2&c=sentiment&c=sentiment.weakpositivesentiment

I get the following output (Json format)

{"mn":1,"mx":1,"p":1,"ps":10,"np":1,"nr":2,"qt":"0.028","r":[{"a":{"c":"sentiment","v":"interesting debate going on re","id":3848290697236},"m":1},{"a":{"c":"sentiment.weakpositivesentiment","v":"interesting","id":7146825580549},"m":1}]}

I am trying to write a transformation to do this and download the file to my PC and not sure which steps to use.

Thanks.

Dashboards.context.roles is undefined

$
0
0
When testing on my localhost, a javascript file retrieving the user roles using "Dashboards.context.roles" returns the role array set up in the administration console for the logged in user.

However, after deploying the bi-server to another server and setting up the roles within the administration console, Dashboards.context.roles is undefined.

The only difference between the two is that on the new server, the BI Server is accessed via an IP address, not "localhost:8080"

I followed the instructions here to ensure that security was enabled between the BI Server the Admin Console and then restarted the server. The admin console connects to the BI server fine, but still the roles for the logged in user are undefined (as well, the user is undefined).
http://wiki.pentaho.com/display/Serv...+and+BI+Server

Does anyone have any ideas?
Thanks in advance!

Dashboards.context.roles is undefined

$
0
0
When testing on my localhost, a javascript file retrieving the user roles using "Dashboards.context.roles" returns the role array set up in the administration console for the logged in user.

However, after deploying the bi-server to another server and setting up the roles within the administration console, Dashboards.context.roles is undefined.

The only difference between the two is that on the new server, the BI Server is accessed via an IP address, not "localhost:8080"

I followed the instructions here to ensure that security was enabled between the BI Server the Admin Console and then restarted the server. The admin console connects to the BI server fine, but still the roles for the logged in user are undefined (as well, the user is undefined).
http://wiki.pentaho.com/display/Serv...+and+BI+Server

Does anyone have any ideas?
Thanks in advance!

(sorry if you saw this post in C-Tools, I didn't know how to move the post to another forum)

Univariate Statistics from a Database Repository

$
0
0
Hi there

I was wonder if someone could provide some help with an issue I have with Univariate Statistics.

When the attached transformation is run as a stand alone transformation or from with a File Repository it runs as expected.

When I import this transformation into a Database Repository and run, I get an error:

Code:

2014/03/27 14:45:18 - Univariate Statistics.0 - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : Unexpected error
2014/03/27 14:45:18 - Univariate Statistics.0 - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : java.lang.NullPointerException
2014/03/27 14:45:18 - Univariate Statistics.0 -    at org.pentaho.di.trans.steps.univariatestats.UnivariateStatsMeta.getFields(UnivariateStatsMeta.java:244)
2014/03/27 14:45:18 - Univariate Statistics.0 -    at org.pentaho.di.trans.steps.univariatestats.UnivariateStats.processRow(UnivariateStats.java:122)
2014/03/27 14:45:18 - Univariate Statistics.0 -    at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60)
2014/03/27 14:45:18 - Univariate Statistics.0 -    at java.lang.Thread.run(Unknown Source)

If I save the transformation after this failure, the Input Fields are blank when I reopen the transformation, so not sure if that is a clue.

This is run from PDI Spoon 5.0.1.A Stable on a Windows XP PC. The Database used for the Repository is MySQL.

Included in the zip is a transformation and a simple CSV with test data. Output is an Excel spreadsheet. The Parameter {processDir} will need to be set for the environment this is run is (processDir is used instead of a built-in variable for the use within a Database Repository)

I'm not sure what I am missing in order to get this to run correctly, so appreciate any help/comments.
Attached Files

Error When trying to connect Pentaho User console to MSSQL Server 2000

$
0
0
I try to create data source in Pentaho User Console where I want it to connect to MSSQL Server 2000. When I test this connection, I got this error:

error2.JPG

Why this error come out? Can someone tell me why & how to fix this?
Attached Images

Always add more vertical ticks to Line chart

$
0
0
freqdistproblem.png

As you can see in the above image, the orange horizontal line overlaps with upper border. I would like have some offset between upper border and maximum value in the graph. How to do that?
Attached Images

Dashboards.context.roles is undefined

$
0
0
Dashboards.context.roles is undefined

When testing on my localhost, a javascript file retrieving the user roles using "Dashboards.context.roles" returns the role array set up in the administration console for the logged in user.

However, after deploying the bi-server to another server and setting up the roles within the administration console, Dashboards.context.roles is undefined.
In the Linux server:

I have used like this js:

<script>
$(document).ready(function(){
var roles=Dashboards.context.roles;
alert("roles:" +roles);

if (roles.indexOf("Test") !=-1 ){
$("#test1").hide();
$("#test1").hide();
$("#test3").hide();
}
});
</script>


Does anyone have any ideas?

Thanks
Manoj

Date Format Auto Detection

$
0
0
I have a date column (Text file input) whose format is different for each run. Any way auto detection of date format is possible?
Have seen Matt Casters mention it in a jira case in comments section. Have included the link as well
Quote:

http://jira.pentaho.com/browse/PDI-10477
Or is there a requirement to automatically detect which date format a date is in and then pick the right one out of 2 or more formats?
This is exactly what i am trying to accomplish.
Thanks in Advance. I am using PDI-5.0.1

unable to publish pentaho-platform-api.jar to remote repository while building

$
0
0
Hi,


I am new to Pentaho. I installed Pentaho software and could view sample reports from User Console.
Now I want to build Pentaho software from the open sources available through Community Edition.


As such I downloaded the sources and imported in Eclipse creating projects viz,
pentaho-platform-api, pentaho-platform-assembly, pentaho-platform-core, pentaho-platform-extensions,
pentaho-platform-repository, pentaho-platform-scheduler, pentaho-user-console.


I could build successfully the pentaho-platform-api project with the default target in ant
generating 'pentaho-platform-api-TRUNK-SNAPSHOT.jar'.


But when trying to build with 'continuos' target in ant which builds the jar and publishes the generated jar to remote repository, it
is giving the following error.


---------------------
maven-publish-dependencies:
[echo] Publishing D:\eclipse_workspace-new-Pentaho\pentaho-platform-api/dist/ivy.xml to ${ivy.repository.publish}...
[exec] [INFO] Scanning for projects...
[exec] [INFO]
[exec] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[exec] [INFO]
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Building Maven Stub Project (No POM) 1
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO]
[exec] [INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom ---
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] BUILD FAILURE
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Total time: 0.958 s
[exec] [INFO] Finished at: 2014-03-27T11:43:32+05:30
[exec] [INFO] Final Memory: 4M/15M
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: The parameters 'url' for goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file are missing or invalid -> [Help 1]
------------------------


Can anyone help me out from this.


Also I chose randomly pentaho-platform-api project to build first. I want to know the order of the projects to be followed for building.


Also, I would like to know and it would be very helpful to me if there is a tutorial explaining how to build pentaho software from open sources so that I can know what steps are needed and what configuration should be done to build pentaho software.
Could you please suggest?




Thanks and regards,
Raman Kumar.

How to Link the Map markers

$
0
0
Hi

i have an use case to link the map component markers with one another.
Eg: All the accused/victim/witness markers(blue) of a case should link to the the incident happened location marker(red) when a fir number is selected.
i have attached an image for clarity.
can any one tell me weather it is achievable with pentaho cde Map Component.
sample.png

and please me help me how to do it....:confused:
Attached Images

Calculate members in mdx

$
0
0
Hello.
There is simple data.
Time Country value_per value
1998 USA 1.37 1000
1999 Canada 2.37 3000


By default i get the ratio of agregated values ((value1 + value2)/(value_per1+value_per2))

However, I need to calculate a measure according to the following formula (value1/value_per1 + value2/value_per2). In other words, i need to get the individual values for each point (value1/value_per1 ratio) and then get the sum of these values.

What formula should I use?

Sync Mobile?

$
0
0
I need to create a form of synchronization between a database server and mobile (androi & iOS) for data exchange.
Can you give me some indication as to whether you can do with this fantastic tool?

thanks you:confused:

Pentaho Mobile BI

$
0
0
Hi Guys,

I need help from your side.

1. I used Android App for older versions of Pentaho. I am unable to login to those apps with guest login on demo.pentaho.com. How to access Pentaho Mobile Console?
2. Is this link changed now?
3. I saw few Pentaho Videos presenting Pentaho Mobile Capabilities, I observed they are using Mobile Browser for that and they are getting Pentaho Mobile user console screen. How to get to that screen?
4. I have reports/dashboards deployed on Server for accessing those on Desktops. Do I need to do any changes to those to access it on Mobile/ipads??

Need your help. Thanks in advance.

Thanks,
Vishwesh

Using external visualization library

$
0
0
I need visualization tools like: venn diagram which are not available in CDE by default.
Is there a way to use google charts or d3.js through CDE?

Step can't read fields from previous step

$
0
0
I have a small problem in kettle. These are the steps I'm using.

Capture2.jpg

The error is at the second step saying that it's unable to get fields from the previous step because of an error, but the sql in "Table input" step works fine.
Any ideas?
Attached Images

Invoking Job Pentaho

$
0
0
HI Everyone,

I want to know if its possible to invoke and executing a Pentaho's Job from one web site or external service, like a unix shell or something like that.

Issue with publish schema workbench

$
0
0
Hello everybody,

I spent my all day looking for a solution, but I am out of ideas.

biserver-ce: 4.8.0
schema workbench: 3.6.1

I have no issue publishing a report with prd. Unfortunatly it doesn't work for psw. The only error I can read is "Unable to publish your file. Please try again or contact your system administrator for assistance". Nothing more, neither in logs from biserver, neither psw.

Aditionnaly I am not able to create or to manage data sources from the biserver.

All connections to DB have been set and successfully tested.

I would be very happy if somebody could help me, and at least explain me how I could manually transfer and activate the schema.

Thank you very much

Problem installing biserver-ce-5.0.1-stable: install.bat isn´t there

$
0
0
Hi,

this is Michael from germany. If you answer, please use simple english, thanks. My OS is Windows 7.


  • I downloaded "biserver-ce-5.0.1-stable.zip" from http://sourceforge.net/projects/pent...e.zip/download
  • I unzipped it
  • I found "InformationMap.html" and opened it.
  • I clicked on "Install Pentaho Software" and opened "Install with Your Own BA Repository" which opened "biserver-ce-5.0.1-stable/biserver-ce/tomcat/webapps/pentaho/docs/install_ziptar.pdf"
  • I am processing installing with this document. I am at page 8 "Download and Unpack Installation Files".
  • At 2) i have to download "biserver-ee-5.0.0-dist.zip".
  • I was not able to find this version in the internet and since i have a newer version i tried to go ahead.
  • At 3c) i have to start "install.bat", sadly in "biserver-ce-5.0.1-stable.zip" there is no "install.bat" included.


How to install biserver-ce-5.0.1-stable?

Thanks - Enomine
Viewing all 16689 articles
Browse latest View live


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