Thanks Jonathan.

But I made changes to sync_cassandra.py file there to include the
supercolumn. However looks like that has been the issue. I am not doing
something right there.

If I want to recreate the keyspace, how is it done? I have the yaml ready.

Regards,
Dipti

On Fri, Nov 19, 2010 at 10:23 PM, Jonathan Ellis <jbel...@gmail.com> wrote:

> Twissandra doesn't use supercolumns.
>
> On Fri, Nov 19, 2010 at 10:49 AM, Dipti Mathur <diptidmat...@gmail.com>
> wrote:
> > Hi,
> > While trying to insert a new supercolumn into the keyspace, I get the
> > following error:
> >>>> tweet = TWEET.insert('4c540492-efd9-11df-a192-0022fa5e3348',{'by':
> >>>> {'a':'to'}})
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File "/home/dipti/src/pycassa/pycassa/columnfamily.py", line 689, in
> > insert
> >     write_consistency_level=write_consistency_level)
> >   File "/home/dipti/src/pycassa/pycassa/columnfamily.py", line 711, in
> > batch_insert
> >     batch.send()
> >   File "/home/dipti/src/pycassa/pycassa/batch.py", line 67, in send
> >     self.client.batch_mutate(mutations, write_consistency_level)
> >   File "/home/dipti/src/pycassa/pycassa/connection.py", line 228, in
> > _client_call
> >     return getattr(conn.client, attr)(*args, **kwargs)
> >   File "/home/dipti/src/pycassa/pycassa/cassandra/Cassandra.py", line
> 803,
> > in batch_mutate
> >     self.send_batch_mutate(mutation_map, consistency_level)
> >   File "/home/dipti/src/pycassa/pycassa/cassandra/Cassandra.py", line
> 811,
> > in send_batch_mutate
> >     args.write(self._oprot)
> >   File "/home/dipti/src/pycassa/pycassa/cassandra/Cassandra.py", line
> 3984,
> > in write
> >     oprot.trans.write(fastbinary.encode_binary(self, (self.__class__,
> > self.thrift_spec)))
> > TypeError: expected string or Unicode object, dict found
> > The keyspace has been constructed as in the Twissandra example.
> >
> > Regards,
> > Dipti
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com
>

Reply via email to