How to insert data into HBase through StarGate REST API How to insert data into HBase through StarGate REST API hadoop hadoop

How to insert data into HBase through StarGate REST API


Your current curl options specify you'd like XML output, and curl is assuming you are posting url-encoded form data (and specifying the wrong Content-Type in the HTTP headers).

Amend your -H "Accept: text/xml" to -H "Content-Type: text/xml" and you should be good