Counters are not yet supported in sstable2json.

(More generally, trunk is not expected to be stable at this point in
the development cycle.)

On Tue, Feb 1, 2011 at 11:32 AM, Narendra Sharma
<narendra.sha...@gmail.com> wrote:
> 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
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Reply via email to