Cassandra sstable2json not working in 1.0

I am beginning to experiment with Cassandra. I am trying out the sstable2json backup tool and it dies with an exception. I do:

sstable2json /home/username/Standard1-e-1-Data.db

and it gives:

Exception in thread "main" java.lang.ArithmeticException: / by zero
at org.apache.cassandra.io.sstable.SSTable.estimateRowsFromIndex(SSTable.java:250)
at org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:328)
at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:158)
at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:122)
at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:117)
at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:353)
at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:366)
at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:424)

The file /home/username/Standard1-e-1-Data.db exists.

Any ideas?

Answers


Never mind, I had the wrong db file path. The correct invocation should have been:

sstable2json /var/lib/cassandra/data/MyKeyspace/User-h-1-Data.db

Need Your Help

T-SQL select sample records of distinct values

tsql select sample

In SQL server 2008 I have table Theory with columns Thesis and Class.

How to Establish Inheritance Between Objects in JavaScript?

javascript oop inheritance

I have the following code that creates two objects (ProfileManager and EmployerManager) where the object EmployerManager is supposed to inherit from the object ProfileManager.