On Fri, Jul 20, 2012 at 6:11 PM, Alex Kozlov <ale...@cloudera.com> wrote:

> Is it printable?  You should be able to call any java class from HBase
> shell:
>
> hbase(main):005:0> org.apache.hadoop.hbase.util.Bytes.toString("Hello
> HBase".to_java_bytes)
> => "Hello HBase"
>
> hbase(main):006:0>
>
> org.apache.hadoop.hbase.util.Bytes.toString("\x48\x65\x6c\x6c\x6f\x20\x48\x42\x61\x73\x65".to_java_bytes)
>
> => "Hello HBase"
>

Thanks for the pointers. I'll try it out.

>
> --
> Alex K
>
>
> On Fri, Jul 20, 2012 at 5:39 PM, Mohit Anchlia <mohitanch...@gmail.com
> >wrote:
>
> > Is there a command on the shell that convert byte into char array when
> > using HBase shell command line? It's all in hex format
> >
> >
> > hbase(main):004:0> scan 'SESSION_TIMELINE'
> >
> > ROW COLUMN+CELL
> >
> > \x00\x00\x00\x01\x7F\xFF\xE8\x034\x04\xCF\xFF
> column=S_T_MTX:\x07A\xB8\xB1,
> > timestamp=1342826789668, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xE81\xDC\xE4\x07\xFF column=S_T_MTX:\x04@
> > \xBB\x94,
> > timestamp=1342826589226, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xFE\xC7Y\x09\xA2\x7F column=S_T_MTX:\x00\x00O?,
> > timestamp=1342830980018, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xFE\xC7Y\x1B\xF1\xFF
> > column=S_T_MTX:\x00\x00\x82\x19, timestamp=1342829793047, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xFE\xC7Y\x1C\xDC_ column=S_T_MTX:\x00\x00S&,
> > timestamp=1342829721025, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xFE\xC7Y\x1D\xC6\xBF
> column=S_T_MTX:\x00\x00\x8Az,
> > timestamp=1342829675205, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xFE\xC7Y \x85\xDF
> column=S_T_MTX:\x00\x00\x89\xDE,
> > timestamp=1342829495072, value=Hello
> >
> > \x00\x00\x00\x01\x7F\xFF\xFE\xC7Y!p? column=S_T_MTX:\x00\x00b\xEA,
> > timestamp=1342829425086, value=Hello
> >
>

Reply via email to