hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath Vissapragada <bhara...@cloudera.com>
Subject Re: Stargate - feeding numerics as byte arrays
Date Tue, 07 Jan 2014 06:22:46 GMT
Not sure if I got you right. Is this [1] what you are looking for? or this
[2] ?

[1]
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/util/Bytes.html#toBytes(int)

[2]
http://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/binary/Base64.html#encodeBase64(byte[])


On Tue, Jan 7, 2014 at 11:38 AM, Prashanth Gedde
<prashanth_gedde@yahoo.com>wrote:

> I know that Stargate expects the values to be inserted into a HBase table
> to be base64 encoded.
>
> How do I base64 encode numerical values like integer and floats before
> forming the JSON payload for HTTP PUT? I expect the numerics to be written
> as byte arrays.
>
> Thanks
> Prashanth




-- 
Bharath Vissapragada
<http://www.cloudera.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message