commit d1bcd748f17250af48dd6be8758c2565fb74bfda Author: Todd Lipcon Date: Mon May 17 18:23:28 2010 -0700 HBASE-2561. Scanning META from shell yields IllegalArgumentException diff --git core/src/main/ruby/hbase/table.rb core/src/main/ruby/hbase/table.rb index 4245cf6..7625d2b 100644 --- core/src/main/ruby/hbase/table.rb +++ core/src/main/ruby/hbase/table.rb @@ -316,7 +316,12 @@ module Hbase return "timestamp=%d, value=%s" % [kv.getTimestamp, hri.toString] end if column == 'info:serverstartcode' - return "timestamp=%d, value=%s" % [kv.getTimestamp, Bytes.toLong(kv.getValue)] + if kv.getValue.length > 0 + str_val = Bytes.toLong(kv.getValue) + else + str_val = Bytes.toStringBinary(kv.getValue) + end + return "timestamp=%d, value=%s" % [kv.getTimestamp, str_val] end end