In China
docker rmi -f registry.cn-shenzhen.aliyuncs.com/xuybin/hbase && curl -L -s https://raw.githubusercontent.com/xuybin/hbase/master/docker-compose-aliyun.yml >docker-compose.yml && docker-compose up -d
docker exec -it master /bin/bash
/start-hbase.sh
jps
exit
docker-compose ps
Outside China
docker rmi -f xuybin/hbase &&curl -L -s https://raw.githubusercontent.com/xuybin/hbase/master/docker-compose.yml >docker-compose.yml && docker-compose up -d
docker exec -it master /bin/bash
/start-hbase.sh
jps
exit
docker-compose ps
docker ps
docker network ls
docker network inspect **_hbase
docker volume ls
docker volume inspect **_hdfs-master[slave1,slave2]
NameNode:visit http://ip:50070
HBaseRESTWeb:visit http://ip:50080/status/cluster
HBaseMasterWeb:visit http://ip:16010
HBaseRegionWebSlave1:visit http://ip:16031
HBaseRegionWebSlave2:visit http://ip:16032
docker exec -it master /bin/bash
hbase shell
create 'test','cf'
list
put 'test','rowkey1','cf:id','1'
put 'test','rowkey1','cf:name','zhang3'
scan 'test'
exit
curl -vi -X GET --header 'Accept: application/json' 'http://127.0.1:50080/test/rowkey1'
curl -vi -X POST -H "Accept: text/xml" -H "Content-Type: text/xml" -d '<?xml version="1.0" encoding="UTF-8"?><TableSchema name="users"><ColumnSchema name="cf" /></TableSchema>' "http://127.0.1:50080/test2/schema"
curl -vi -X DELETE -H "Accept: text/xml" "http://127.0.1:50080/test2/schema"
docker exec -it master /bin/bash
/stop-hbase.sh
jps
exit
docker-compose stop
docker-compose rm -f
docker volume ls
docker volume rm **_hdfs-master[slave1,slave2]
docker network ls
docker network rm **_hbase