Hi,

I have configured HBase rest service. Below API's are working properly

/version/cluster
/status/cluster
/

But get namespaces and creating new table is not working.

1. List namespace

curl -vi -X GET \
  -H "Accept: application/json" \
  "http://example.com:8000/namespaces/";

Exception: HTTP Error 405 - Method not allowed

2. Create or update table schema

curl -vi -X POST \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"TableSchema": {"name": "users","ColumnSchema": { "name": "cf" }}' \
  "http://example.com:8000/users/schema";

Exception: Bad request - The remote server returned an error: (500)
Internal Server Error

I am following the below documentation,

http://hbase.apache.org/book.html#_using_rest_endpoints

Why it is not working? Any other example available for HBase rest api?

Reply via email to