cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aslak Dirdal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-2386) sstable2json does not work on snapshot without moving the files
Date Fri, 25 Mar 2011 15:38:05 GMT
sstable2json does not work on snapshot without moving the files
---------------------------------------------------------------

                 Key: CASSANDRA-2386
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2386
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
    Affects Versions: 0.6.12
         Environment: Redhat Linux
            Reporter: Aslak Dirdal
            Priority: Minor


sstable2json ../data/MyKeyspace/snapshots/1301066898131-mysnapshot/dockeys-10-Data.db

{
  Exception in thread "main" java.lang.NullPointerException: Unknown ColumnFamily dockeys
in keyspace 1301066898131-mysnapshot
        at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:1169)
        at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:68)
        at org.apache.cassandra.io.SSTableReader.makeColumnFamily(SSTableReader.java:582)
        at org.apache.cassandra.db.ColumnFamilySerializer.deserializeFromSSTable(ColumnFamilySerializer.java:158)
        at org.apache.cassandra.io.IteratingRow.getColumnFamily(IteratingRow.java:79)
        at org.apache.cassandra.tools.SSTableExport.serializeRow(SSTableExport.java:110)
        at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:270)
        at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:302)
        at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:326)
        at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:370)


sstable2json seem to think that the foldername "1301066898131-mysnapshot" is the Kayspace
name.

Moving the *.db files to a folder with the same name as the Keyspace is a workaround.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message