- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HBASE and REST API
Created ‎06-28-2018 01:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎06-28-2018 05:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. You can use the hbase REST API to manipulate data in HDP. By default the hbase rest server is not started. You need to start it first
To start rest server in foreground
# su hbase # hbase rest start -p {port to start the server}
To start in background
# su hbase # /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start rest -p {port to start the server}
.
Ref: http://hbase.apache.org/book.html#_rest
http://blog.cloudera.com/blog/2013/03/how-to-use-the-apache-hbase-rest-interface-part-1/
.
You can also use the phoenix query server to do the manipulation using http using sqlline.py. But the interface it not REST. Phoenix is built on Apache Calcite.
http://phoenix.apache.org/server.html
.
Please "Accept" the answer if this helps.
-Aditya
Created ‎06-28-2018 05:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. You can use the hbase REST API to manipulate data in HDP. By default the hbase rest server is not started. You need to start it first
To start rest server in foreground
# su hbase # hbase rest start -p {port to start the server}
To start in background
# su hbase # /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start rest -p {port to start the server}
.
Ref: http://hbase.apache.org/book.html#_rest
http://blog.cloudera.com/blog/2013/03/how-to-use-the-apache-hbase-rest-interface-part-1/
.
You can also use the phoenix query server to do the manipulation using http using sqlline.py. But the interface it not REST. Phoenix is built on Apache Calcite.
http://phoenix.apache.org/server.html
.
Please "Accept" the answer if this helps.
-Aditya
