incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain HARDOUIN <romain.hardo...@urssaf.fr>
Subject RE Need help in updating metadata of an existing column family
Date Thu, 29 Nov 2012 12:56:47 GMT
Hi Roshan,

Take a peep at 
http://www.datastax.com/docs/1.1/dml/using_cli#reading-rows-and-columns
Hope that helps.

Cheers


Roshan Dawrani <roshandawrani@gmail.com> a écrit sur 29/11/2012 11:28:48 :

> Roshan Dawrani <roshandawrani@gmail.com> 
> 29/11/2012 11:28
> 
> Veuillez répondre à
> user@cassandra.apache.org
> 
> A
> 
> user <user@cassandra.apache.org>, 
> 
> cc
> 
> Objet
> 
> Need help in updating metadata of an existing column family
> 
> Hi,
> 
> I have an existing column family that is created with comparator 
> BytesType. I want to add a built-in index to this column family and 
> I am executing the following command using CLI:
> 
> =================================================
> update column family MyCF with comparator=BytesType and 
> column_metadata=[{column_name: userid, validation_class: UTF8Type, 
> index_type: KEYS, index_name: ACUserIdIdx}];
> =================================================
> 
> However the column metadata that actually gets added has the column name 

> "fffffd" and not "userid".
> 
> From a previous thread, I have understood that in this case 
> Cassandra treats the column name I have given as bytes (due to 
> comparator BytesType), and hence comes up with a different name.
> 
> Any workaround solution for creating the column metadata with the 
> correct column name?
> 
> Regards,
> -- 
> Roshan
> http://roshandawrani.wordpress.com/
Mime
View raw message