Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 67704 invoked from network); 1 Feb 2011 19:32:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 19:32:52 -0000 Received: (qmail 89700 invoked by uid 500); 1 Feb 2011 19:32:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 89620 invoked by uid 500); 1 Feb 2011 19:32:49 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 89612 invoked by uid 99); 1 Feb 2011 19:32:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 19:32:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of narendra.sharma@gmail.com designates 209.85.161.172 as permitted sender) Received: from [209.85.161.172] (HELO mail-gx0-f172.google.com) (209.85.161.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 19:32:43 +0000 Received: by gxk27 with SMTP id 27so3042761gxk.31 for ; Tue, 01 Feb 2011 11:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=D8lFq1xT/2EkA4IoT6CjKiorXar21ODAK4CWRFfwEP4=; b=iFBSduX9uag0aeV0S7fjMBP4CDiEfA9YcIplRoPExfPmwGJhlB7LV9fKYnYAoRgZjy QRVl6L+uyldKf0FIxNXsuBNXs1lX1lcnhI27HBOvbuzHqqxM5N1jYrY7vTpS/pATRXoH mgCXlwdjOwJcNypHNSTMg+MFkWS7buS5DIY7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lGmJbvwG2Brim0uzsgkwchFbk0rryD7KNHH9jvqdxGP9zOqEeawAULKFul9y9MLl/B hTDXxWp0QelliNDyqC35QVAkElBmzET+qWzKqeZOROBa9RWW7DOwZeAsKpte4U+F1eSS ewEIZN7tHR06JqzZcOvcbTgysdjEwnQcPhpmw= MIME-Version: 1.0 Received: by 10.223.83.134 with SMTP id f6mr5180566fal.1.1296588741757; Tue, 01 Feb 2011 11:32:21 -0800 (PST) Received: by 10.223.86.193 with HTTP; Tue, 1 Feb 2011 11:32:21 -0800 (PST) Date: Tue, 1 Feb 2011 11:32:21 -0800 Message-ID: Subject: sstable2json for SuperCounter CF not working From: Narendra Sharma To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf304345085f4c0e049b3d97dd --20cf304345085f4c0e049b3d97dd Content-Type: text/plain; charset=ISO-8859-1 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 --20cf304345085f4c0e049b3d97dd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Version: Cassandra 0.7.1 (build from trunk)

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

Steps:
- Start= ed the two nodes, loaded schema using nodetool
- Executed counter update and read operations on A with CL=3DONE. Everything worked fine. All counters were returned with correct values.
- Using nodetool flush, flushed the memtab= le to sstable
- Used sstable2json on the sstable and got following excep= tion:

[root@msg-qelnx01-v14 bin]# ./sstable2json ../../cassandra071/= data/Keyspace1/SuperCounter1-f-1-Data.db
=A0WARN 11:38:45,081 Schema definitions were defined both locally and in ca= ssandra.yaml. Definitions in cassandra.yaml were ignored.
{
=A0 "= ;62626232": { "787832": {"deletedAt": -92233720368= 54775808, "subColumns": [["616464636f756e74", Exception= in thread "main" org.apache.cassandra.db.marshal.MarshalExceptio= n: A long is exactly 8 bytes
=A0=A0=A0 at org.apache.cassandra.db.marshal.CounterColumnType.getString(Co= unterColumnType.java:57)
=A0=A0=A0 at org.apache.cassandra.tools.SSTable= Export.serializeColumns(SSTableExport.java:100)
=A0=A0=A0 at org.apache.= cassandra.tools.SSTableExport.serializeRow(SSTableExport.java:153)
=A0=A0=A0 at org.apache.cassandra.tools.SSTableExport.export(SSTableExport.= java:296)
=A0=A0=A0 at org.apache.cassandra.tools.SSTableExport.export(S= STableExport.java:330)
=A0=A0=A0 at org.apache.cassandra.tools.SSTableEx= port.export(SSTableExport.java:343)
=A0=A0=A0 at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.ja= va:400)

Thanks,
Naren
--20cf304345085f4c0e049b3d97dd--