From user-return-10462-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Thu Nov 11 22:41:21 2010 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 68690 invoked from network); 11 Nov 2010 22:41:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 22:41:21 -0000 Received: (qmail 50310 invoked by uid 500); 11 Nov 2010 22:41:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 50208 invoked by uid 500); 11 Nov 2010 22:41:51 -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 50198 invoked by uid 99); 11 Nov 2010 22:41:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 22:41:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.243.68.202] (HELO mail.nisc.coop) (207.243.68.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 22:41:43 +0000 Authentication-Results: mail.nisc.coop; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.59,185,1288587600"; d="scan'208,217";a="87571908" Received: from unknown (HELO ndes2) ([12.10.126.135]) by mail.nisc.coop with ESMTP/TLS/AES128-SHA; 11 Nov 2010 16:41:21 -0600 Received: from MOES1.nisc.lan ([::1]) by MOES1.nisc.lan ([::1]) with mapi; Thu, 11 Nov 2010 16:41:20 -0600 From: Aditya Muralidharan To: "user@cassandra.apache.org" Subject: RE: Cassandra 0.7 beta3 BinaryMemtable and Supercolumns Thread-Topic: Cassandra 0.7 beta3 BinaryMemtable and Supercolumns Thread-Index: AcuB5z3gSnHGFY47S8+xK7bCveBYVwACJTEg Date: Thu, 11 Nov 2010 22:41:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_B6960A109BFD6E44B09EED4E31DD7FF27E73MOES1nisclan_" MIME-Version: 1.0 --_000_B6960A109BFD6E44B09EED4E31DD7FF27E73MOES1nisclan_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Pretty sure I could ask that better: Is it possible for me to perform RowMutations on BinaryMemtable for a Colum= nFamily of type Super? The bmt_example seems to say that it's possible, but cassandra 0.7 b3 seems= to disagree with the following: ERROR [MutationStage:38] 2010-11-11 13:47:37,383 DebuggableThreadPoolExecut= or.java (line 103) Error in ThreadPoolExecutor java.lang.RuntimeException: java.lang.UnsupportedOperationException: This o= peration is not supported for Super Columns. at org.apache.cassandra.db.BinaryVerbHandler.doVerb(BinaryVerbHandl= er.java:54) at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDelivery= Task.java:62) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoo= lExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe= cutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.UnsupportedOperationException: This operation is not s= upported for Super Columns. at org.apache.cassandra.db.SuperColumn.value(SuperColumn.java:158) at org.apache.cassandra.db.Table.load(Table.java:640) at org.apache.cassandra.db.RowMutation.applyBinary(RowMutation.java= :206) at org.apache.cassandra.db.BinaryVerbHandler.doVerb(BinaryVerbHandl= er.java:44) The code in the bmt_example serializes the CF for the super columns and set= s that as column data (made me scratch my head) on a different CF for the R= owMutation. Attempting that causes the following exception: Caused by: java.io.IOException: Invalid localDeleteTime read: 0 at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperC= olumn.java:334) at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperC= olumn.java:291) at org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumn= s(ColumnFamilySerializer.java:129) at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(Colum= nFamilySerializer.java:120) at org.apache.cassandra.db.RowMutationSerializer.defreezeTheMaps(Ro= wMutation.java:368) at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMut= ation.java:378) at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMut= ation.java:336) at org.apache.cassandra.db.RowMutationMessageSerializer.deserialize= (RowMutationMessage.java:84) at org.apache.cassandra.db.BinaryVerbHandler.doVerb(BinaryVerbHandl= er.java:42) ... which is basically because the CFSerializer is (rightly) expecting to d= eserialize a super column though the bmt_example serialized a Standard CF. Any help on BMT with supercolumns would be appreciated. Thanks. AD From: Aditya Muralidharan [mailto:Aditya.Muralidharan@nisc.coop] Sent: Thursday, November 11, 2010 3:27 PM To: user@cassandra.apache.org Subject: Cassandra 0.7 beta3 BinaryMemtable and Supercolumns Is it possible for BinaryMemtable RowMutations to a ColumnFamily with super= columns? --_000_B6960A109BFD6E44B09EED4E31DD7FF27E73MOES1nisclan_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Pretty sure I could ask that better:

 

Is it possible for me t= o perform RowMutations on BinaryMemtable for a ColumnFamily of type Super?<= o:p>

 

The bmt_example seems to say that it’s possible, but cassandra 0.7 b= 3 seems to disagree with the following:

 

ERROR [MutationStage:38] 2010-11= -11 13:47:37,383 DebuggableThreadPoolExecutor.java (line 103) Error in Thre= adPoolExecutor

java.lang.RuntimeException: java.lang.UnsupportedOperationExcep= tion: This operation is not supported for Super Columns.<= /p>

   &nb= sp;    at org.apache.cassandra.db.BinaryVerbHandler.doVerb(B= inaryVerbHandler.java:54)

        at org.ap= ache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:62)

 =        at java.util.concurrent.ThreadPoolExec= utor$Worker.runTask(ThreadPoolExecutor.java:886)

     = ;   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadP= oolExecutor.java:908)

        at java.lang.= Thread.run(Thread.java:619)

Caused by: java.lang.UnsupportedOperationException= : This operation is not supported for Super Columns.

<= p class=3DMsoNormal>    &= nbsp;   at org.apache.cassandra.db.SuperColumn.value(SuperColumn.= java:158)

        at org.apache.cassandra.d= b.Table.load(Table.java:640)

        at org= .apache.cassandra.db.RowMutation.applyBinary(RowMutation.java:206)

  = ;      at org.apache.cassandra.db.BinaryVerbHandle= r.doVerb(BinaryVerbHandler.java:44)

 

The code in the bmt_example serializes= the CF for the super columns and sets that as column data (made me scratch= my head) on a different CF for the RowMutation. Attempting that causes the= following exception:

 

Caused by: java.io.IOException: Invalid localDeleteT= ime read: 0

        at org.apache.cassandra= .db.SuperColumnSerializer.deserialize(SuperColumn.java:334)

   =      at org.apache.cassandra.db.SuperColumnSerializer.d= eserialize(SuperColumn.java:291)

=         at= org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(ColumnFa= milySerializer.java:129)

        at org.apa= che.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySerializer.= java:120)

        at org.apache.cassandra.d= b.RowMutationSerializer.defreezeTheMaps(RowMutation.java:368)

  &nbs= p;     at org.apache.cassandra.db.RowMutationSerializer= .deserialize(RowMutation.java:378)

        = at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.ja= va:336)

        at org.apache.cassandra.db.= RowMutationMessageSerializer.deserialize(RowMutationMessage.java:84)

 &nb= sp;      at org.apache.cassandra.db.BinaryVerbHand= ler.doVerb(BinaryVerbHandler.java:42)

 

… which is basically because t= he CFSerializer is (rightly) expecting to deserialize a super column though= the bmt_example serialized a Standard CF.

 

Any help on BMT with supercolum= ns would be appreciated.

 

Thanks.

 

AD

 

 

From: Aditya Muralidharan [mailto:Aditya.Muralidha= ran@nisc.coop]
Sent: Thursday, November 11, 2010 3:27 PM
T= o: user@cassandra.apache.org
Subject: Cassandra 0.7 beta3 Bin= aryMemtable and Supercolumns

 

Is it possible for Binary= Memtable RowMutations to a ColumnFamily with supercolumns?

= --_000_B6960A109BFD6E44B09EED4E31DD7FF27E73MOES1nisclan_--