1、通过rest连接
hbase开启rest服务
./hbase-daemon.sh start rest
2、预先在hbase中插入一条数据
create_namespace 'test'
create 'test:data','001','info' //test是命名空间,data是表名,001是行键,info是列簇
put 'test:data','001','info:name','无锡市人民政府'
使用postman调用接口
文档地址:http://hbase.org.cn/docs/127.html
如果要查询命名空间test下的data表中 001行键的数据,如下
http://url:8080/test:data/001