cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ankit tyagi <ankittyagi.mn...@gmail.com>
Subject Error while converting data from sstable to json with sstable2json
Date Wed, 30 Jul 2014 12:50:27 GMT
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