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

Central Log Store is not initialized!!!

$
0
0
Hello there! I was searching the web about this topic, but no luck! This is driving me crazy!


When I run PDI from a Linux server, I get the following error:


/opt/data-integration
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: java.lang.RuntimeException: Central Log Store is not initialized!!!
at org.pentaho.di.core.logging.KettleLogStore.getInstance(KettleLogStore.java:185)
at org.pentaho.di.core.logging.KettleLogStore.getAppender(KettleLogStore.java:235)
at org.pentaho.di.core.logging.LogChannel.println(LogChannel.java:122)
at org.pentaho.di.core.logging.LogChannel.logError(LogChannel.java:166)
at org.pentaho.di.pan.CommandLineOption.parseArguments(CommandLineOption.java:410)
at org.pentaho.di.kitchen.Kitchen.main(Kitchen.java:197)
... 5 more









It's random, and really find no explanation! I read somewhere you add the line running to the central log, but I could not solve.
Please, if anyone knows the subject, I appreciate very much your help!


Thank you!

Sorry for my bad English.

Problems to write txt file into Cassandra

$
0
0
I'm newer in Pentaho and Cassandra and I'm trying to execute an example (http://wiki.pentaho.com/display/BAD/...a+To+Cassandra) to see how Pentaho and Cassandra work. I'm using:
# Pentaho DI CE 6.0
# Cassandra 3.2.1
# Java 8
# Ubuntu 14.04 LTS


Two errors occur. First, when I uncheck "Use CQL version 3" and "Use Thrift I/O", the error occurred is described in attachment one. In turn, when I check "Use CQL version 3", the error occurred is described in attachment two. Always the option "Create column family" is checked.

Thanks
Attached Files

RSS Input fails with

$
0
0
I have an RSS feed which fails to work in the RSS Input task under pdi versions 5 & 6.

Steps:

- Create a new "RSS Input"
- Set the URL to "http://www.thegazette.co.uk/insolvency/data.feed"
- Press "Preview rows" and set to 1000
- The following error and stack trace is generated.

If I do the same thing with "http://www.feedforall.com/sample.xml" it loads the fields successfully. Looking at the RSS feed it appears to be in proper ATOM format.

I also noticed that if I use the https version of the feed, "https://www.thegazette.co.uk/insolvency/data.feed" the RSS input appears to change the URL to "m.www.thegazette.co.uk" and fails.



2016/01/27 12:31:56 - RSS Input.0 - org.dom4j.DocumentException: Error on line 1 of document http://www.thegazette.co.uk/insolven...results-page=1 : White spaces are required between publicId and systemId. Nested exception: White spaces are required between publicId and systemId.
2016/01/27 12:31:56 - RSS Input.0 -
2016/01/27 12:31:56 - RSS Input.0 - at org.pentaho.di.trans.steps.rssinput.RssInput.processRow(RssInput.java:360)
2016/01/27 12:31:56 - RSS Input.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/01/27 12:31:56 - RSS Input.0 - at java.lang.Thread.run(Unknown Source)
2016/01/27 12:31:56 - RSS Input.0 - Caused by: it.sauronsoftware.feed4j.FeedXMLParseException: org.dom4j.DocumentException: Error on line 1 of document http://www.thegazette.co.uk/insolven...results-page=1 : White spaces are required between publicId and systemId. Nested exception: White spaces are required between publicId and systemId.
2016/01/27 12:31:56 - RSS Input.0 - at it.sauronsoftware.feed4j.FeedParser.parse(FeedParser.java:53)
2016/01/27 12:31:56 - RSS Input.0 - at org.pentaho.di.trans.steps.rssinput.RssInput.readNextUrl(RssInput.java:168)
2016/01/27 12:31:56 - RSS Input.0 - at org.pentaho.di.trans.steps.rssinput.RssInput.getOneRow(RssInput.java:198)
2016/01/27 12:31:56 - RSS Input.0 - at org.pentaho.di.trans.steps.rssinput.RssInput.processRow(RssInput.java:312)
2016/01/27 12:31:56 - RSS Input.0 - ... 2 more
2016/01/27 12:31:56 - RSS Input.0 - Caused by: org.dom4j.DocumentException: Error on line 1 of document http://www.thegazette.co.uk/insolven...results-page=1 : White spaces are required between publicId and systemId. Nested exception: White spaces are required between publicId and systemId.
2016/01/27 12:31:56 - RSS Input.0 - at org.dom4j.io.SAXReader.read(SAXReader.java:482)
2016/01/27 12:31:56 - RSS Input.0 - at org.dom4j.io.SAXReader.read(SAXReader.java:291)
2016/01/27 12:31:56 - RSS Input.0 - at it.sauronsoftware.feed4j.FeedParser.parse(FeedParser.java:37)
2016/01/27 12:31:56 - RSS Input.0 - ... 5 more
child index = 0, logging object : org.pentaho.di.core.logging.LoggingObject@7b850a0b parent=71716106-573e-4c53-9d3b-1d2a1c669551
2016/01/27 12:31:56 - RSS Input.0 - Finished processing (I=0, O=0, R=0, W=0, U=0, E=1)

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

The first part of the data from the RSS feed looks like this:

<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:f="https://www.thegazette.co.uk/facets" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/"><id>https://www.thegazette.co.uk/insolvency/notice/data.feed?&amp;results-page=1</id><link

I'm not sure why it thinks there is a problem with the XML declaration (looks valid).

Has anyone used the RSS Input before on a ATOM feed like this?

Thanks,
Jay

New to supporting our Pentaho products... How do I find version information?

$
0
0
I am new to supporting our Pentaho CE products, taking the place of someone who left our organization a couple of years ago. I have been charged with getting our Pentaho system off of a Windows 2003 Server and upgrading to a current version of the Pentaho products as well. I do know we are seriously out-of-date. However I am having a hard time finding the versions of the products we have installed.

I know that our Pentaho server has both the PDI (Spoon) versions 4.1.0 and 4.2.1 installed and I've been able to discover our Pentaho Platform Engine Core version is 3.5.2.stable.41050 and our Eclipse Platform version is 3.5.1 Build M20090917-0800

I'm trying to determine our version of BI-Suite and/or our version of Pentaho Business Analytics. I'm still working to get familiar with all of the product names. Any guidance on determining product versions is much appreciated.

Problem in running weka-3-7-13

$
0
0
Hi all,


Recently, while working with weka-3-7-13, when I am trying to use "classify" in weka explorer and click "choose"button under classifier, getting following message:

Exception in thread "Thread-13" java.lang.UnsatisfiedLinkError: org.rosuda.JRI.Rengine.rniSetupR([Ljava/
lang/String;)I
org.rosuda.JRI.Rengine.rniSetupR(Native Method)
org.rosuda.JRI.Rengine.setupR(Rengine.java:170)
org.rosuda.JRI.Rengine.run(Rengine.java:635)

at org.rosuda.JRI.Rengine.rniSetupR(Native Method)
at org.rosuda.JRI.Rengine.setupR(Rengine.java:170)
at org.rosuda.JRI.Rengine.run(Rengine.java:635)


It was working fine by now but not sure what happened suddenly.


regards,


Mahesh

move a Folder in Pentaho

$
0
0
Hi

I am new to Pentaho and I am trying using REST API to change a folder path with all his content, to move a folder from a location to an other location
Example
We have this structure
mainFolder
|
- subFolder1
|
- subFolder2
|
-subSubFolder

And after a rest call I am trying to have this structure:
mainFolder
|
-subFolder1
|
- subFolder2
|
- subSubFolder

The folder "subSubFolder" is on the same level as subFolder1 and subFolder2.

Can anyone help me how I can do this with REST API calls ? I am still searching for the REST URL to delete a folder and for moving a folder I found nothing.

Thank you,
Adi

Drop Down Parameter

$
0
0
Hi.


I have a problem:
I have a drop down parameter (table location) with eg 4 options:


Desc ID_localizacion
1 North
2 South
3 o-West
4 West


I need to create an option parameter (-1) that the description is "ALL".
How I can do to make when selecting "All", take all ID`s of the table and send my query?


select * from table
Where ID_localización} in {$ ID_localizacion
I need $ ID_localizacion = ('1', '2', '3', '4', .....)
Thank you so much

Job Mail step throwing Could not connect to SMTP host error

$
0
0
Hi All,


In a pentaho job I am trying to send a mail using Job Mail step using my gmail account. But I Am getting the following error .

2016/01/28 02:02:25 - Mail 2 - ERROR (version 6.0.0.0-353, build 1 from 2015-10-07 13.27.43 by buildguy) : Problem while sending message: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
nested exception is:
java.net.SocketException: Permission denied: connect


I am able to ping the gmail smtp server smtp.gmail.com and I have given correct authentication details and correct mail ids.

I am getting same error even if I use my company's id and SMTP server and authentication details.

does any one have an idea how to resolve this error.


Regards,
Sai.

Help with JNDI database connection - please...

$
0
0
Hi,

We're having trouble with conflicting versions of our JDBC datasources and would therefore like to connect to our databases via JNDI access instead. It is an Oracle 11g database.

This is the connection information for one of our current working JDBC connections:

Connection type: Oracle
Access: Native (JDBC)
Host name: chaucer.city.se
Database name: chaucerdb
Tablespace for data: (blank)
Tablespace for indices: (blank)
Port number: 1521
User Name: user
Password: password

I have added the following information to the jdbc.properties in the ...\data-integration\simple-jndi\ folder:

testing/type=javax.sql.DataSource
testing/driver=oracle.jdbc.OracleDriver
testing/url=chaucer.city.se/chaucerdb (same as Host Name + Database Name above)
testing/user=user (same as User Name above)
testing/password=password (same as Password above)

I then create a database connection in Pentaho Data integration:

Connection type: Oracle
Access: JNDI
JNDI Name: testing
Tablespace for data: (blank)
Tablespace for indices: (blank)

When I test this connection i get the following error:
Error connecting to database: (using class oracle.jdbc.driver.OracleDriver)
no ocijdbc10 in java.library.path

So... A few questions then:

Did I input the information in jdbc.properties correctly?
Should I really use "oracle.jdbc.OracleDriver" for Oracle 11g?
Do I need the ocijdbc10.jar file, and if so - where do I put it? In the data-integration\lib folder?

I would be very grateful for any help! I'm sort of out of my league here...

Perspectives and XUL Overlays on 6.0

$
0
0
Hi all,

I'm trying to customize the user home that is displayed when a user logs into pentaho 6.
Starting from the article http://blog.oncase.com.br/pentaho-6-...#disqus_thread (that I tested exactly as it is and it worked well)

I'd like to add a new Menu in the toolbar and hide the existing one as well.
I read that this could be done using XUL Overlays.

Looking at the bluprint.xml file I notice that the candidate section is the one mapped in the class StaticPerspective
that is:

Code:

privateArrayList<XulOverlay> overlays;
this means that in the blueprint.xml file we're going to use:

Code:

<property name="overlays">
  <list>
      //here the xml code for the overlays
  </list>
</property>

Please, does anyone know which is the right code to define an XUL Overlay array in order to display a Menu on the toolbar?

Thank you so much for the support.
Max

Mismatch in output prediction and Correctly Classified Instances

$
0
0
Hi All,

I am using BatchPredictorVote that has 2 classifiers with majority voting for which I am getting results as mentioned below:
Correctly Classified Instances 17 89.4737 % and
Incorrectly Classified Instances 2 10.5263 %.

However when I check my output predictions of test data, I see only 14 predictions correct and 5 predictions wrong. I have attached the screenshot of the same. Am I missing something?

Thanks,
Sanjay
Attached Images

Looking for Pentaho fuctions to manulate CSV file inputs

$
0
0
Dear All,

Can someone suggest me what functions can I use in Pentaho to implement following requirement:

I have 2 CSV file inputs:

CSV 1:

Flight ID Name Starting from
1 Condor Munich
2 Lufthansa Barcelona
3 Easyjet Hamburg
4 emirates dubai

CSV 2:
FID Flight Number Flight CODE
1 C123 CON
2 L345 LUT
3 E346 ESY
5 EM56

When the Flight ID in CSV 1 is same as FID in CSV2 then I need to get the Flight Code from CSV 2 and add as it in the additional field in CSV1.


Results:
Flight ID Name Starting from Flight CODE
1 Condor Munich CON
2 Lufthansa Barcelona LUT
3 Easyjet Hamburg ESY
4 emirates dubai

Regards,
Krishna

Test value and substitute

$
0
0
Hi all,

Sorry for my ignorance but just starting out with Pentaho, I'm after some guidance on what is the best step to use to check a field value e.g. IsAuditable and then set a value in a different field e.g. NextAuditDue.

So what I need is something that says, if IsAuditable = 'Yes' then Set NextAuditDate to '03/12/2016'.

Any help would be much appreciated.

Many thanks

Andy

Olap selector problem

$
0
0
Hello,
I can connect an OLAP selector that is part of a hierarchy at the same level to a chart??
For example:
I have a secondary table of months ,
with other fields "quarter" and "half year" , because when I try to connect all at the same chart I have an error message.
thanks in advance

HTTP Post different behaviour between PDI 4.4 and 5.4 / 6.0

$
0
0
Hi ,

I have a transformation using HTTP Post step running just fine on 4.4 version. There's Client and Server authorisation required via certificates (self-signed), both are stored separately in java keystores. The following JVM start up options are added in spoon start up file:
"-Djavax.net.ssl.keyStore=C:\......\keystore.jks" "-Djavax.net.ssl.keyStorePassword=***" "-Djavax.net.ssl.keyStoreType=JKS" "-Djavax.net.ssl.trustStore=C:\.......\chain.jks" "-Djavax.net.ssl.trustStorePassword=***"

It seems that with 5.4 / 6 pdi , provided keystore references are not taken into account when running the transforation, I've checked that by adding yet another option: -Djavax.net.debug=all

Does anyone has any idea what can be the issue ? I've checked both in Windows 7 (64 bit / 32 bit) and 64 bit Centos 6.5.

thanks,
Pawel

Persistence Unit Not Found

$
0
0
Hi to all,
in my use case i have developed a custom authentication provider. In order to query my user database, i previously developed a jar module containing the dao persistence logic.
The jar module uses JPA Hibernate provider.
The persistence xml looks like the following snippet code:

<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="MY-UNIT"
transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>


<class>...</class>

<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.connection.provider_class" value="com.connection.ConnectionProvider" />
<property name="jboss.entity.manager.factory.jndi.name" value="java:comp/persistence/PU-Kas"/>
</properties>
</persistence-unit>


Its location is the standard META-INF.
I have copied thi jar into the Pentaho\server\biserver-ee\tomcat\webapps\pentaho\WEB-INF\lib folder...

When i run my provider, this statement

EntityManagerFactory emfactory = Persistence.createEntityManagerFactory("MY-UNIT", properties);

catches the exception:


javax.persistence.PersistenceException: No Persistence provider for EntityManager named MY-UNIT

Where is my error?
Thanks and regards.

Constructing a custom mail message

$
0
0
I have a requirement where the standard (success) mail message isn't appropriate for the target audience (non-administrators). I was able to glean some tips from this thread; http://stackoverflow.com/questions/2...in-pentaho-pdi. However, I have outstanding questions concerning how to send the mail message. Can javamail be manually invoked from a user defined java class? Or is it better to included the output file in the message body. If the latter approach is taken, how do you suppress the pentaho.log being appended? Any tips will be greatly appreciated.

Weka Wrapper result interpretation

$
0
0
Hello,
I am new to Weka. I ran a random forest algorithm with wrapper method for attribute selection with 5-fold cross validation. However, I get confused on interpreting the result. Basically, the result is as:

number of folds (%) attribute
4(80%) 1 length
2(60%) 2 word_file
5(100%) 3 contains_pdf
1(20%) 4 name
3(60%) 5 contains_url

and so on.
What are the numbers and what is the best way to select features?

Any help is much appreciated. Thanks in advance.

Enable Proxy Server for PDI

$
0
0
Hi Team,


I am trying to copy the cvs files to hadoop cluster using Hadoop copy files, It seems that the cluster configuration is successful since I am able to test the cluster connection and able to find the destination folder. But when I run the transformation I am getting an error "Connection Refused" and this is probably because of the proxyhost which is used to connect the internet. So please help me figure out how to enable the proxy host for the pdi.


I have already tried to add the proxy host and port in spoon.bat and run the transformation but the problem still persists. So need help.






Regards,
Deepa HirematherrorLog.txt
Attached Files

Passing json object as datasource to CCC charts using function

$
0
0
Hi folks,
http://www.webdetails.pt/ctools/ccc/
As given in the above links, charts are getting json data by using .setData() function. I want to achieve the same thing but I dont want to create charts using -
new pvc.xyzChart({}) function. Instead, I want to use the inbuilt properties of chart and extend the Chart definition using pre-execution function to set json string as source to the chart because I am updating the json through a table and I want the chart to re-render itself on the json source updation. Can anyone help me to achieve this ?? Its urgent :(
Viewing all 16689 articles
Browse latest View live


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