HBASE-1509 Add explanation to shell help command on how to use binary keys
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@783993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d841ab681d
commit
d1a678ca83
|
@ -320,6 +320,8 @@ Release 0.20.0 - Unreleased
|
||||||
HBASE-1453 Add HADOOP-4681 to our bundled hadoop, add to 'gettting started'
|
HBASE-1453 Add HADOOP-4681 to our bundled hadoop, add to 'gettting started'
|
||||||
recommendation that hbase users backport
|
recommendation that hbase users backport
|
||||||
HBASE-1507 iCMS as default JVM
|
HBASE-1507 iCMS as default JVM
|
||||||
|
HBASE-1509 Add explanation to shell "help" command on how to use binarykeys
|
||||||
|
(Lars George via Stack)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
HBASE-1412 Change values for delete column and column family in KeyValue
|
HBASE-1412 Change values for delete column and column family in KeyValue
|
||||||
|
|
11
bin/hirb.rb
11
bin/hirb.rb
|
@ -258,6 +258,17 @@ the '=>' character combination. Usually keys are predefined constants such as
|
||||||
NAME, VERSIONS, COMPRESSION, etc. Constants do not need to be quoted. Type
|
NAME, VERSIONS, COMPRESSION, etc. Constants do not need to be quoted. Type
|
||||||
'Object.constants' to see a (messy) list of all constants in the environment.
|
'Object.constants' to see a (messy) list of all constants in the environment.
|
||||||
|
|
||||||
|
In case you are using binary keys or values and need to enter them into the
|
||||||
|
shell then use double-quotes to make use of hexadecimal or octal notations,
|
||||||
|
for example:
|
||||||
|
|
||||||
|
hbase> get 't1', "key\\x03\\x3f\\xcd"
|
||||||
|
hbase> get 't1', "key\\003\\023\\011"
|
||||||
|
hbase> put 't1', "test\\xef\\xff", 'f1:', "\\x01\\x33\\x40"
|
||||||
|
|
||||||
|
Using the double-quote notation you can directly use the values output by the
|
||||||
|
shell for example during a "scan" call.
|
||||||
|
|
||||||
This HBase shell is the JRuby IRB with the above HBase-specific commands added.
|
This HBase shell is the JRuby IRB with the above HBase-specific commands added.
|
||||||
For more on the HBase Shell, see http://wiki.apache.org/hadoop/Hbase/Shell
|
For more on the HBase Shell, see http://wiki.apache.org/hadoop/Hbase/Shell
|
||||||
HERE
|
HERE
|
||||||
|
|
Loading…
Reference in New Issue