Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase, mail # user - HBase shell


+
Mohit Anchlia 2012-07-21, 00:39
+
Dhaval Shah 2012-07-21, 01:18
+
Mohit Anchlia 2012-07-21, 03:48
+
Alex Kozlov 2012-07-21, 01:11
Copy link to this message
-
Re: HBase shell
Mohit Anchlia 2012-07-21, 17:31
On Fri, Jul 20, 2012 at 6:11 PM, Alex Kozlov <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]
> >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
> >
>