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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -