hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Demai Ni <nid...@gmail.com>
Subject HBase Rest Put examples/errors
Date Tue, 04 Feb 2014 01:55:00 GMT
hi, folks,

I am trying to put a row through REST API and linux command.

I started REST server (using port 8500), and be able to create a table:
create 't2_dn','cf1'

And then, I used this command to insert a row
 curl -v -X PUT 'http://localhost:8500/t2_dn/row1/cf1:q1' -H "Accept:
application/json" -H "Content-Type: application/json" --data '{"Row":{
"@key":"row1","Cell":{"@column":"cf1:q1", "$":"val1"}}}'
but failed with error:
> {"Row":{ "@key":"row1","Cell":{"@column":"cf1:q1", "$":"val1"}}}HTTP/1.1
500 Can not deserialize instance of java.util.List out of START_OBJECT
token  at [Source: org.mortbay.jetty.HttpParser$Input@1a841a84; line: 1,
column: 2] (through reference chain:

I have googled a couple examples, such as here:

Would someone give me some hints or point to a few more examples? many


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message