HBase REST Server,hbaserestserver
##start up
# Foreground
hbase rest start -p <port># Background, logging to a file in $HBASE_LOGS_DIR
hbase-daemon.sh start rest -p <port>
hbase-daemon.sh stop rest
##Use
##by the browser
http://192.168.23.236:8080/status/cluster
##by the command line
#cluster
curl 192.168.23.236:8080/version/cluster
(useful)curl 192.168.23.236:8080/status/cluster
curl 192.168.23.236:8080/ List of all non-system tables
#namespace
curl 192.168.23.236:8080/namespaces
#Table
curl 192.168.23.236:8080/KYLIN_0UTF40XGGR/schema
(useful)curl 192.168.23.236:8080/ns_monitor:t_monitor_memory/schema
#Region
获取表ns_monitor:t_monitor_interface_log_hbase中的Region情况
(useful)curl 192.168.23.236:8080/ns_monitor:t_monitor_interface_log_hbase/regions
curl 192.168.23.236:8080/PH_MONITOR.T_MONITOR_INTERFACE_LOG/regions
#Get
curl 192.168.23.236:8080/hbase_test:fql_hbase_replication_ms/r12/fql_cf:c1
#Scan
curl -vi -X PUT -H "Accept: text/xml" -H "Content-Type: text/xml" -d '<Scanner batch="1"/>' "192.168.23.236:8080/hbase_test:fql_hbase_replication_ms/scanner/"
##Reference
75. REST
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。