I keep getting an error for the following PUT request to an HBASE table.
curl -v -X PUT -H "Content-Type: application/json" --data '{"Row":
[{"key":"aHR0cHM6Ly9tYWt6ZW9uLndvcmRwcmVzcy5jb20v", "Cell":
[{"column":"YmxvZ3NfZGF0YTp1cmw=", "$":
"aHR0cHM6Ly9tYWt6ZW9uLndvcmRwcmVzcy5jb20v"},
{"column":"YmxvZ3NfZGF0YTppbnNlcnREYXRl", "$": "MTQ5Njg3ODk1OA=="},
{"column":"YmxvZ3NfZGF0YTpzdGF0dXM=", "$": "QWN0aXZl"}],
}]}'
http://1xx.xxx.xxx.xxx:8080/table2/https%3A%2F%2Fkeyurl.com%2F
ERROR:
HTTP/1.1 500 Unexpected character ('}' (code 125)): was expecting double-
quote to start field name at [Source:
org.mortbay.jetty.HttpParser$Input@16346c5e; line: 1, column: 277]
< Content-Length: 0
<
* Connection #0 to host 1xx.xxx.xxx.xxx left intact
* Closing connection #0
I cannot find the problem. Also if someone could help convert that into a nodejs request, it would be very helpful.
via vbNewbie
No comments:
Post a Comment