PDA

View Full Version : Cassandra ClassNotFoundException



kingram
09-24-2013, 12:25 PM
Hi, I'm new to Kettle and I Was hoping someone could help me out with this issue. I'm trying to write data to a cassandra node and when I click "Get column family names" I get the following error
java.lang.NoClassDefFoundError: org/apache/cassandra/config/ConfigurationException
at org.pentaho.di.trans.steps.cassandraoutput.CassandraOutputDialog.setupColumnFamiliesCombo(CassandraOutputDialog.java:1009)
at org.pentaho.di.trans.steps.cassandraoutput.CassandraOutputDialog$8.widgetSelected(CassandraOutputDialog.java:444)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.trans.steps.cassandraoutput.CassandraOutputDialog.open(CassandraOutputDialog.java:968)
at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:136)
at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7835)
at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2749)
at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:705)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1221)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8304)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580)
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:134)
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.config.ConfigurationException
.........etc

Needless to say writing data fails also.

Please help me out with this.

--Update
I fixed this issue. As it turns out I was using a newer version of cassandra-all(1.2.6.6) and the org.apache.cassandra.config.configurationexception class wasn't in there. I reverted to cassandra-all-1.1.0 to resolve.