incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narendra Sharma <narendra.sha...@gmail.com>
Subject sstable2json for SuperCounter CF not working
Date Tue, 01 Feb 2011 19:32:21 GMT
Version: Cassandra 0.7.1 (build from trunk)

Setup:
- Cluster of 2 nodes (Say A and B)
- HH enabled
- Using the default Keyspace definition in cassandra.yaml
- Using SuperCounter1 CF

Steps:
- Started the two nodes, loaded schema using nodetool
- Executed counter update and read operations on A with CL=ONE. Everything
worked fine. All counters were returned with correct values.
- Using nodetool flush, flushed the memtable to sstable
- Used sstable2json on the sstable and got following exception:

[root@msg-qelnx01-v14 bin]# ./sstable2json
../../cassandra071/data/Keyspace1/SuperCounter1-f-1-Data.db
 WARN 11:38:45,081 Schema definitions were defined both locally and in
cassandra.yaml. Definitions in cassandra.yaml were ignored.
{
  "62626232": { "787832": {"deletedAt": -9223372036854775808, "subColumns":
[["616464636f756e74", Exception in thread "main"
org.apache.cassandra.db.marshal.MarshalException: A long is exactly 8 bytes
    at
org.apache.cassandra.db.marshal.CounterColumnType.getString(CounterColumnType.java:57)
    at
org.apache.cassandra.tools.SSTableExport.serializeColumns(SSTableExport.java:100)
    at
org.apache.cassandra.tools.SSTableExport.serializeRow(SSTableExport.java:153)
    at
org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:296)
    at
org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:330)
    at
org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:343)
    at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:400)

Thanks,
Naren

Mime
View raw message