Search code examples
oracle-databaseoracle11gcassandrapentahopentaho-spoon

How to check connection of cassandra with pentaho data integrator


I'm trying to load data from Oracle table to Cassandra table by using Pentaho Data Integration 5.1(Community Edition). But I'm not getting whether connection has been established between oracle and cassandra. I'm using Cassandra 2.2.3 and Oracle 11gR2. I've added following jars in lib folder of data-integration --cassandra-thrift-1.0.0 --apache-cassandra-cql-1.0.0 --libthrift-0.6.jar --guava-r08.jar --cassandra_driver.jar Please anyone can help me to figure out how to check whether connection has been established in Pentaho.


Solution

  • There are some ways to debug if a connection is established to a database, I don't know if all of them are valid for cassandra, but I'll add a especial one for that.

    1) The test button

    By simply clicking the test button on the connection edit screen.

    connection screen

    2) Logs with high details may help

    Another way to test is running you transformation with a high detail log:

    sh pan.sh -file=my_cassandra_transformation.ktr -level=Rowlevel
    

    3) The input preview

    For cassandra, in especific, I would try just to create a simple read operation using Cassandra Input step and clicking in the 'preview' button. the preview button

    4) The controlled output test

    Or maybe you can try with a simplier transformation first, to make sure it's running fine. Eg. a simple transformation to test output