How to store binary data in Kamanja containers?

22 views
Skip to first unread message

Koushik Kulkarni

unread,
Jan 6, 2016, 8:27:33 AM1/6/16
to kamanja
hi all,

We need to store java serialized binary data in containers - can someone please let me know if we can do this using KVInit? if yes, please direct me to an example. The examples from SampleApplications are using CSV or delimited data only. 

thanks,
Koushik

Krishna Uppala

unread,
Jan 6, 2016, 2:44:36 PM1/6/16
to Koushik Kulkarni, kamanja

Koushik,

 

Is this serialized binary data a field of some data structure? In any case, currently there is no mechanism in the message deserializer to decode some input data into array of bytes. Best bet is to encode the binary data as hex decimal or 64 base string and store as string and then decode up on retrieving into memory. We will add proper conversion function as part of transformation work that will be doing in near future.

 

Thanks

-Krishna

--
You received this message because you are subscribed to the Google Groups "kamanja" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kamanja+u...@ligadata.com.
To post to this group, send email to kam...@ligadata.com.
Visit this group at https://groups.google.com/a/ligadata.com/group/kamanja/.

Koushik Kulkarni

unread,
Jan 12, 2016, 8:26:01 AM1/12/16
to kamanja, kulka...@gmail.com
Thanks Krishna. We encoded the binary data in base 64 string, but now we are getting below error while loading it in HBase store using KVInit:

ERROR com.ligadata.keyvaluestore.HBaseAdapter - Failed to save a list of objects in table(s) :Row length 52139 is > 32767

I suppose it is to do with some setting for the storage adapter - can someone please let me know what setting has to be done to allow insertion of bigger row values in the data store?

Thanks,
Koushik

Koushik Kulkarni

unread,
Jan 13, 2016, 3:08:01 AM1/13/16
to kamanja, kulka...@gmail.com
Hi all,

Can someone please let me know about the below issue at the earliest possible?

Thanks,
Koushik

Sreenivasulu Pokuri

unread,
Jan 13, 2016, 3:38:15 AM1/13/16
to Koushik Kulkarni, kamanja

Hi Koushik,

 

Looks like you are keeping the KEY (ROW) value as 50KB. HBase allows only max Short.MAX_VALUE as the ROW value.

 

Can you please check once whether you are keeping all that stuff as KEY or not?

 

Thanks

Pokuri

Koushik

unread,
Jan 13, 2016, 4:14:50 AM1/13/16
to Sreenivasulu Pokuri, kamanja
Yes Pokuri, that was the issue. I added a separate key and was able to insert the data in the data store. 

Thanks for the help!

Thanks,
Koushik
Reply all
Reply to author
Forward
0 new messages