Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

HBASE and REST API

Master 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

@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

@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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.