hector - Update single column in cassandra -
i have following cassandra column family:
create column family cfn comparator = utf8type , key_validation_class = uuidtype , column_metadata =[ {column_name:email, validation_class: utf8type,index_type: keys} {column_name:full_name, validation_class: utf8type} ];
i want update "full_name" of given "email" don't know row key have "email". how can using hector thrift api?
i know have insert new column there no update kind of thing in cassandra. necessary row key before inserting new column same row?
inserting using cassandra-cli or hector basic thing. may need brush cassandra repo read this.
try using cli
set cfn[rowkey]['full_name']='xyz'; /* *remember have mentioned key uuid type. while providing rowkey should *be in uuid type only. e.g 8aff3820-1e55-11b2-a248-41825ac3edd8 */ set cfn[rowkey]['email']='xyz@gmail.com';
retrieve data,
list cfn;
Comments
Post a Comment