Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> HBase shell


+
Mohit Anchlia 2012-07-21, 00:39
Copy link to this message
-
Re: HBase shell
Mohit, HBase shell is a JRuby wrapper and as such has all functions available which are available using Java API.. So you can import the Bytes class and the do a Bytes.toString() similar to what you'd do in Java

Regards,
Dhaval
________________________________
From: Mohit Anchlia <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Friday, 20 July 2012 8:39 PM
Subject: HBase shell

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
+
Mohit Anchlia 2012-07-21, 03:48
+
Alex Kozlov 2012-07-21, 01:11
+
Mohit Anchlia 2012-07-21, 17:31
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB