Hi.

On Cassandra 0.6 beta-2

I have this schema:
<Keyspace Name="KS">
<ColumnFamily Name="Users" CompareWith="BytesType"/>
<ColumnFamily Name="Items" CompareWith="BytesType" ColumnType="Super"
CompareSubcolumnsWith="BytesType"/>

I'm trying the batch_mutate api using python:

socket = TSocket.TSocket("localhost", 9160)
transport = TTransport.TBufferedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport)
client = Cassandra.Client(protocol)
transport.open()

m = {
    'exmpl_item_id': {
    'Items': 
[Mutation(ColumnOrSuperColumn(super_column=SuperColumn('users',[Column('name','matteo')])))]
}}
client.batch_mutate('KS', m, ConsistencyLevel.ONE)

I get an exception, but it's a shy one and can't figure out what is
that I'm doing wrong.

Thanks.

Traceback (most recent call last):
  File "test-migrate.py", line 23, in <module>
    client.batch_mutate('KS', m, ConsistencyLevel.ONE)
  File 
"/Users/dikappa/Documents/workspace/likelike/python/cassandra/Cassandra.py",
line 771, in batch_mutate
    self.recv_batch_mutate()
  File 
"/Users/dikappa/Documents/workspace/likelike/python/cassandra/Cassandra.py",
line 784, in recv_batch_mutate
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
  File "build/bdist.macosx-10.6-i386/egg/thrift/protocol/TBinaryProtocol.py",
line 126, in readMessageBegin
  File "build/bdist.macosx-10.6-i386/egg/thrift/protocol/TBinaryProtocol.py",
line 203, in readI32
  File "build/bdist.macosx-10.6-i386/egg/thrift/transport/TTransport.py",
line 58, in readAll
  File "build/bdist.macosx-10.6-i386/egg/thrift/transport/TTransport.py",
line 155, in read
  File "build/bdist.macosx-10.6-i386/egg/thrift/transport/TSocket.py",
line 94, in read
thrift.transport.TTransport.TTransportException: None




-- 
:Matteo Caprari
matteo.capr...@gmail.com

Reply via email to