cassandra-bulkload-example icon indicating copy to clipboard operation
cassandra-bulkload-example copied to clipboard

DatabaseDescriptor gives NullPointerException

Open muriumiqbal opened this issue 10 years ago • 2 comments

Using the provided BulkLoad.java, as is, to create the SSTables gives the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError at org.apache.cassandra.cql3.statements.UpdateStatement.addUpdateForKey(UpdateStatement.java:109) at org.apache.cassandra.io.sstable.CQLSSTableWriter.rawAddRow(CQLSSTableWriter.java:218) at org.apache.cassandra.io.sstable.CQLSSTableWriter.addRow(CQLSSTableWriter.java:138) at org.apache.cassandra.io.sstable.CQLSSTableWriter.addRow(CQLSSTableWriter.java:113) at bulkload.BulkLoad.main(BulkLoad.java:145) Caused by: java.lang.NullPointerException at org.apache.cassandra.config.DatabaseDescriptor.createAllDirectories(DatabaseDescriptor.java:605) at org.apache.cassandra.db.Keyspace.(Keyspace.java:73)

Using the provided gradle-wrapper.jar file works fine, though.

Is there something necessary which is present in the project that isn't in the provided source file? Or, some additional configuration that needs to be set, but is not mentioned in the associated blog post?

muriumiqbal avatar Mar 13 '15 21:03 muriumiqbal

We had bug in recent version of Cassandra (both 2.0 and 2.1) and was fixed in CASSANDRA-8808 to be released in v2.0.14 and 2.1.4.

yukim avatar Mar 19 '15 01:03 yukim

Alright. Thank you!

muriumiqbal avatar Mar 19 '15 13:03 muriumiqbal