hbase伪分布式安装(单节点安装)
1. 前提配置好java,环境java变量
上传jdk1.7
rpm -ivh jdk
2. 上传hbase的压缩包,解压,配置hbase环境变量,修改配置文件(hbase-env.sh, hbase-site.xml)
2.1 解压
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150559186-1207267778.png)
2.2 配置hbase环境变量
mv hbase /home
cd hbase/bin
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150559639-1849044122.png)
vi /etc/profile
source /etc/profile
2.2 修改配置文件(hbase-env.sh, hbase-site.xml)
cd conf
vi hbase-env.sh
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150601576-477369286.png)
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150602467-1781876498.png)
vi hbase-site.xml
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150602701-45740839.png)
3. 测试hbase
启动hbase start-hbase.sh
netstat -npl | grep java
web端口:60010 node5:60010
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150602982-60776316.png)
停止hbase stop-hbase.sh
进入hbase shell命令,前提先启动hbase hbase shell
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150603201-1462868537.png)
help
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150603467-627703875.png)
退出hbase shell命令 quit
![](https://images2015.cnblogs.com/blog/1008304/201703/1008304-20170312150603764-170226040.png)