基础准备
- JDK
- Hadoop
- SSH Server
下载HBase
1 | tar -zxvf hbase-1.4.2-bin.tar.gz |
系统环境变量
export HBASE_MANAGES_ZK=true
export HBASE_HOME=/opt/hbase
export PATH=$PATH:/opt/hbase/bin
写死JAVA_HOME
vi ./conf/hbase-env.sh
1 | export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/ |
单机模式配置
vi hbase-site.xml
1 | <configuration> |
伪分布模式配置
vi hbase-site.xml
1 | <configuration> |
启动Hadoop:
1 | ./start-all.sh |
Hbase启停
启停:
1 | ./bin/start-hbase.sh |
查看进程:
1 | jps |
WEB控制台:
http://localhost:45005/master-status
HBase Shell
1 | ./bin/hbase shell |
常用命令:
1 | status |
参考文档
https://www.jianshu.com/p/8818e8d40da4
https://www.jianshu.com/p/352213f109e5
https://www.shiyanlou.com/courses/37
https://www.ibm.com/developerworks/cn/analytics/library/ba-cn-bigdata-hbase/index.html