Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.