tuplejump / calliope

Calliope is a library integrating Cassandra and Spark framework.
http://tuplejump.github.io/calliope/
Apache License 2.0
28 stars 5 forks source link

java.lang.NoClassDefFoundError: org/apache/cassandra/exceptions/ConfigurationException #31

Closed lvicentesanchez closed 10 years ago

lvicentesanchez commented 10 years ago

I'm trying to use the spark 1.0.0 SNAPSHOT (0.9.4-EA-SNAPSHOT) but I'm getting this error:

java.lang.NoClassDefFoundError: org/apache/cassandra/exceptions/ConfigurationException

The only way I could solved it was by adding,

"org.apache.cassandra" % "cassandra-all" % "2.0.8"

as a dependency.

milliondreams commented 10 years ago

Yes, cassandra-all is needed for Calliope

lvicentesanchez commented 10 years ago

Shouldn't that be a transitive dependency?

milliondreams commented 10 years ago

We don't make it a transient dependency so you can just add the one corresponding to your Cassandra version. Do you think we should make it a transient dependency?

lvicentesanchez commented 10 years ago

Hum... either it should be a transitive dependency, as binary compatibility is granted for the same cassandra release (i.e. 2.0.2 is binary compatible with 2.0.9 and users could bump to 2.0.9 if desired); or it should be made explicit that you need to add the cassandra dependency yourself, to avoid people thing there is a problem with the release... :)

lvicentesanchez commented 10 years ago

Sorry I have just checked the website... I missed the "Getting started" section... :)