cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lohfink <clohf...@blackbirdit.com>
Subject Re: Error while converting data from sstable to json with sstable2json
Date Wed, 30 Jul 2014 14:45:06 GMT
Its stored as bytes, depending completely on what is given to it.  If I were to guess I would
say this looks like a composite partition key of utf8 values separated with control character
(0) and a length of the next key.

i.e.
PRIMARY KEY ((uid, vendor, x), timestamp, y)

Chris Lohfink

On Jul 30, 2014, at 7:50 AM, ankit tyagi <ankittyagi.mnnit@gmail.com> wrote:

> Hi,
> 
> I am using sstable2json to convert data into json from sstable. it gives me data in below
format.
> 
> {"key": "000d5549443030303030303738353000000639323765616400000a524541445355444f303100","columns":
[["1406126067358:8:","",1406126067369000], ["1406126067358:8:errormessage","53cfc7f3",1406126067369000,"d"],
["1406126067358:8:value","VENDOR_PRODUCT_PERSISTENCE_COMPLETED",1406126067369000], ["1406126217012:14:","",1406126260468000],
["1406126217012:14:errormessage","UID0000007850for vendorCode : 927ead\t and vsku : READSUDO01\t
is overridden by uploadid : UID0000007851",1406126260468000], ["1406126217012:14:value","VENDOR_PRODUCT_OVERWRITTEN",1406126260468000]]}
> 
> key is given in hexadecimal from. when i convert this into ascii code this key gives
me below string 
> UID0000007850[0][0][6]927ead[0][0][10]READSUDO01[0]
> 
> but when I retrieve this with cassandra-cli it gives me below row key
> UID0000007850:927ead:READSUDO01 
> 
> I want to  know which encoding is being used to store the data in cassandra. how can
I decode this hexadecimal string into proper ascii string like cassandra-cli.
> 
> Regards,
> Ankit Tyagi
>  
> 


Mime
View raw message