Wednesday, 15 April 2015

cassandra bulk loader database descriptor null pointer exception -


I am trying to follow the example of loading the bulk of the new and the following blog Cassandra:

If I use the provided jar and runs the example, then it works.

I, instead, provides the use of the source file (and the resulting jar when I try to run this error:

  exception in thread "main) org.apache.cassandra on "java.lang org.apache.cassandra.cql3.statements.UpdateStatement.addUpdateForKey (UpdateStatement.java:109) org.apache.cassandra.io.sstable.CQLSSTableWriter.rawAddRow (CQLSSTableWriter.java:218) on .ExceptionInInitializerError .io.sstable.CQLSSTableWriter.addRow org.apache.cassandra.io.sstable.CQLSSTableWriter.addRow (CQLSSTableWriter.java:113) to (CQLSSTableWriter.java:138) on bulkload.BulkLoad.main (BulkLoad.java : 145) was caused by: java.lang.NullPointerException at org.apache.cssandra.config.DatabaseDesc org.apache.cassandra.db.Keyspace on riptor.createAllDirectories (DatabaseDescriptor.java:605). & Lt; clinit & gt; (Keyspace.java:73) .. 5. More  

I have not changed anything from the example in the file. I had assumed that it would have the correct result in running the jar file provided in the same example, but it did not happen. Can anyone explain what I did?

Thank you.

What versions of cassandra do you use? Example was written with 2.1 in mind.

can set client mode config are

  org.apache.cassandra.config .Config.setClientMode (right); Otherwise you may have problems with the database with the database that have been statically declared, you can probably put a fake case in your square path, and you can work around them. , Which I think is cassandra-providing all the packages for example. 

It is notable that in all the possibilities, it will perform better than inserting you directly instead of trying to bulk load.


No comments:

Post a Comment