欢迎投稿

今日深度:

HBase REST Server,hbaserestserver

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


www.htsjk.Com true http://www.htsjk.com/hbase/28301.html NewsArticle 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.23...
相关文章
    暂无相关文章
评论暂时关闭