You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aslak Dirdal (JIRA)" <ji...@apache.org> on 2011/03/25 16:38:05 UTC
[jira] [Created] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
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
[jira] [Assigned] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis reassigned CASSANDRA-2386:
-----------------------------------------
Assignee: Patricio Echague (was: paul cannon)
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: Patricio Echague
> Priority: Minor
> Fix For: 0.8.1
>
>
> 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 Keyspace 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
[jira] [Updated] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Patricio Echague (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patricio Echague updated CASSANDRA-2386:
----------------------------------------
Attachment: CASSANDRA-trunk-2386-1.patch
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: Patricio Echague
> Priority: Minor
> Fix For: 0.8.1
>
> Attachments: CASSANDRA-trunk-2386-1.patch, CASSANDRA-trunk-2386.patch
>
>
> 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 Keyspace 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
[jira] [Updated] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2386:
--------------------------------------
Affects Version/s: (was: 0.6.12)
Fix Version/s: 0.7.5
> 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
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Priority: Minor
> Fix For: 0.7.5
>
>
> 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 Keyspace 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
[jira] [Commented] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046918#comment-13046918 ]
Hudson commented on CASSANDRA-2386:
-----------------------------------
Integrated in Cassandra-0.8 #162 (See [https://builds.apache.org/job/Cassandra-0.8/162/])
support sstable2json against snapshot sstables
patch by Patricio Echague; reviewed by jbellis for CASSANDRA-2386
jbellis : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1134120
Files :
* /cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/io/sstable/DescriptorTest.java
* /cassandra/branches/cassandra-0.8/CHANGES.txt
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/db/Table.java
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/Descriptor.java
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: Patricio Echague
> Priority: Minor
> Fix For: 0.8.1
>
> Attachments: CASSANDRA-trunk-2386-1.patch, CASSANDRA-trunk-2386.patch
>
>
> 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 Keyspace 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
[jira] [Updated] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2386:
--------------------------------------
Issue Type: Improvement (was: Bug)
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Priority: Minor
> Fix For: 0.7.5
>
>
> 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 Keyspace 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
[jira] [Assigned] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis reassigned CASSANDRA-2386:
-----------------------------------------
Assignee: paul cannon
updating the Descriptor "figure out keyspace name from path" code may or may not be the only problem here.
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: paul cannon
> Priority: Minor
> Fix For: 0.7.5
>
>
> 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 Keyspace 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
[jira] [Updated] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Patricio Echague (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patricio Echague updated CASSANDRA-2386:
----------------------------------------
Attachment: CASSANDRA-trunk-2386.patch
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: Patricio Echague
> Priority: Minor
> Fix For: 0.8.1
>
> Attachments: CASSANDRA-trunk-2386.patch
>
>
> 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 Keyspace 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
[jira] [Commented] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Patricio Echague (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046297#comment-13046297 ]
Patricio Echague commented on CASSANDRA-2386:
---------------------------------------------
The cause of this failure is that
{code} Descriptor.java {code}
{code}
public static Pair<Descriptor,String> fromFilename(File directory, String name)
{
// name of parent directory is keyspace name
String ksname = directory.getName();
{code}
For a snapshot path like this:
{code}/var/lib/cassandra/data/Keyspace1/snapshots/1307575216104{code}
produces an output: ksname == 1307575216104 (which is wrong).
It should be "Keyspace1"
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: Patricio Echague
> Priority: Minor
> Fix For: 0.8.1
>
>
> 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 Keyspace 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
[jira] [Updated] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Patricio Echague (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patricio Echague updated CASSANDRA-2386:
----------------------------------------
Reviewer: jbellis
> 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: Improvement
> Components: Tools
> Environment: Redhat Linux
> Reporter: Aslak Dirdal
> Assignee: Patricio Echague
> Priority: Minor
> Fix For: 0.8.1
>
> Attachments: CASSANDRA-trunk-2386.patch
>
>
> 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 Keyspace 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
[jira] [Updated] (CASSANDRA-2386) sstable2json does not work on
snapshot without moving the files
Posted by "Aslak Dirdal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aslak Dirdal updated CASSANDRA-2386:
------------------------------------
Description:
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 Keyspace name.
Moving the *.db files to a folder with the same name as the Keyspace is a workaround.
was:
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.
> 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 Keyspace 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