Database Reference
In-Depth Information
Getting started
For a REST-based client to make a connection to an HBase cluster, irst start the
REST server on the HBase Master as follows:
[root@localhost bin]# hbase rest
...
usage: bin/hbase rest start [--infoport <arg>] [-p <arg>] [-ro]
--infoport <arg> Port for web UI
-p,--port <arg> Port to bind to [default: 8080]
-ro,--readonly Respond only to GET HTTP method requests [default:
false]
To run the REST server as a daemon, execute the following command:
bin/hbase-daemon.sh start|stop rest [--infoport <port>] [-p <port>] [-ro]
For example, launch the REST service, listening on port 9999 using the following
command:
[root@localhost bin]# hbase rest start -p 9999
Or as daemon service:
[root@localhost bin]# ./hbase-daemon.sh start rest -p 9999
Once the service is started, curl# command can be used to verify the
service status:
[root@localhost bin]# curl http://localhost:9999/
firsttable
tab2
 
Search WWH ::




Custom Search