diff --git a/CHANGES.txt b/CHANGES.txt index 4cea7cfdfde..53b887f7285 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -320,6 +320,8 @@ Release 0.20.0 - Unreleased HBASE-1453 Add HADOOP-4681 to our bundled hadoop, add to 'gettting started' recommendation that hbase users backport HBASE-1507 iCMS as default JVM + HBASE-1509 Add explanation to shell "help" command on how to use binarykeys + (Lars George via Stack) OPTIMIZATIONS HBASE-1412 Change values for delete column and column family in KeyValue diff --git a/bin/hirb.rb b/bin/hirb.rb index cad62cafcf6..e421cf63d51 100644 --- a/bin/hirb.rb +++ b/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 '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. For more on the HBase Shell, see http://wiki.apache.org/hadoop/Hbase/Shell HERE