hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From byte array <byte.arra...@gmail.com>
Subject Writing doubles into HBase table from Java client
Date Tue, 16 Jul 2013 15:36:33 GMT

A rather rudimentary thing. I have noticed that sometimes HBase shell 
shows double values in a readable format and sometimes as array of 
(octal thus unreadable) 8 bytes .
This happens when I write them into the table from a java client:
In this case I have problems reading/mapping the value in Pig script and 
CDH beeswax/hue.

I made a temporary workaround by writing the doubles using Pig's class:

On the contrary, When I aggregate and store doubles from Pig script into 
some other table, they are readable in the HBase shell, as if they were 
strings and also readable by Pig and other programs.
I wonder what is the proper way to write doubles into HBase table from a 
Java client?


View raw message