Index: bin/HBase.rb =================================================================== --- bin/HBase.rb (revision 895916) +++ bin/HBase.rb (working copy) @@ -425,13 +425,13 @@ i = s.iterator() while i.hasNext() r = i.next() - row = String.from_java_bytes r.getRow() + row = Bytes::toStringBinary(r.getRow()) if limit != -1 and count >= limit break end for kv in r.list family = String.from_java_bytes kv.getFamily() - qualifier = String.from_java_bytes kv.getQualifier() + qualifier = Bytes::toStringBinary(kv.getQualifier()) column = family + ':' + qualifier cell = toString(column, kv, maxlength) @formatter.row([row, "column=%s, %s" % [column, cell]]) @@ -494,7 +494,7 @@ Bytes.toLong(kv.getValue())] end end - val = "timestamp=" + kv.getTimestamp().to_s + ", value=" + Bytes.toStringBinary(kv.getValue()) + val = "timestamp=" + kv.getTimestamp().to_s + ", value=" + Bytes::toStringBinary(kv.getValue()) maxlength != -1 ? val[0, maxlength] : val end @@ -555,7 +555,7 @@ if !result.isEmpty() for kv in result.list() family = String.from_java_bytes kv.getFamily() - qualifier = String.from_java_bytes kv.getQualifier() + qualifier = Bytes::toStringBinary(kv.getQualifier()) column = family + ':' + qualifier @formatter.row([column, toString(column, kv, maxlength)]) end Index: bin/hirb.rb =================================================================== --- bin/hirb.rb (revision 895916) +++ bin/hirb.rb (working copy) @@ -298,8 +298,7 @@ '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: +shell then use double-quotes to make use of hexadecimal for example: hbase> get 't1', "key\\x03\\x3f\\xcd" hbase> get 't1', "key\\003\\023\\011" Index: bin/Formatter.rb =================================================================== --- bin/Formatter.rb (revision 895916) +++ bin/Formatter.rb (working copy) @@ -96,7 +96,7 @@ return end # Remove double-quotes added by 'dump'. - return str.dump[1..-2] + return str end def output(width, str)