备注:
本次安装是在hbase docker 镜像的基础上配置的,主要是为了方便学习,而hbase搭建有觉得
有点费事,用镜像简单。
1. hbase 镜像
docker pull harisekhon/hbase
2. 启动hbase
docker run -d -p 2181:2181 -p 8080:8080 -p 8085:8085 -p 9090:9090 -p 9095:9095 -p 16000:16000 -p 16010:16010 -p 16201:16201 -p 16301:16301 harisekhon/hbase
3. 测试hbase
docker exec -it {hbasedocker-id} sh
hbase shell
// 看到下面的就是启动成功了
2017-12-11 05:15:10,909 WARN [main] util.NativeCodeLoader: Unable to load native-Hadoop library for your platform... using builtin-java classes where applicable
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 1.3.1, r930b9a55528fe45d8edce7af42fef2d35e77677a, Thu Apr 6 19:36:54 PDT 2017
// 创建表
create 'users','user_id','user_name','user_age'