hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fullysane <fullys...@msn.com>
Subject undefined method `to_java_bytes' error on get
Date Wed, 07 Jul 2010 03:14:03 GMT

Hi 
I just got my Hbase-0.20.5 installed under cygwin on XP. And I created a
test table 'mytable' and entered couple rows. When I tested the get command
in hbase shell I got the following error message on NoMethodError, see
below:

$ ./bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.20.5, r956266, Sat Jun 19 11:27:50 PDT 2010

get 'mytable', '1', {COLUMNS => ['policy:polnbr', 'polstate:statcd']}
get 'mytable', '1', {COLUMNS => ['policy:polnbr', 'polstate:statcd']}
NoMethodError: undefined method `to_java_bytes' for ["policy:polnbr",
"polstate:statcd"]:Array 

But I got no error when I ran the scan command:

HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.20.5, r956266, Sat Jun 19 11:27:50 PDT 2010
scan 'mytable', {COLUMNS => ['policy:polnbr','polstate:statecd']}
scan 'mytable', {COLUMNS => ['policy:polnbr','polstate:statecd']}
ROW                          COLUMN+CELL

 1                           column=policy:polnbr, timestamp=1278126968883,
value=A1234
 1                           column=polstate:statecd,
timestamp=1278128352650, value=VA
 2                           column=policy:polnbr, timestamp=1278383840390,
value=A2222
 2                           column=polstate:statecd,
timestamp=1278384126968, value=MD
2 row(s) in 0.0470 seconds

Did I do anything wrong? or is this a known problem?

Any help is appreciated.

Thanks,

Fuesane Cheng 
-- 
View this message in context: http://old.nabble.com/undefined-method-%60to_java_bytes%27-error-on-get-tp29092130p29092130.html
Sent from the HBase User mailing list archive at Nabble.com.


Mime
View raw message