Support Questions

Find answers, ask questions, and share your expertise

HBASE and REST API

avatar
Super Collaborator

can I read/write/manipulate HBASE data via REST API in Hortonworks ? if yes can you guide me some documentation and examples ?

I also have Phoenix , is it better to read Hbase data via Phoenix views? again I want to read it via REST API.

1 ACCEPTED SOLUTION

avatar

@Sami Ahmad yes its possible to read hbase data using rest api. You need to start the rest api server first:

$ hbase rest start

By default this will listen on port 8080. URL used should be similar to this:

http://<myhost>:8080/<mytable>/<rowkey1>/<cf:q>/

Documentation at:

https://hbase.apache.org/1.2/apidocs/org/apache/hadoop/hbase/rest/package-summary.html

HTH

*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.

View solution in original post

1 REPLY 1

avatar

@Sami Ahmad yes its possible to read hbase data using rest api. You need to start the rest api server first:

$ hbase rest start

By default this will listen on port 8080. URL used should be similar to this:

http://<myhost>:8080/<mytable>/<rowkey1>/<cf:q>/

Documentation at:

https://hbase.apache.org/1.2/apidocs/org/apache/hadoop/hbase/rest/package-summary.html

HTH

*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.