1、在搭建起了hadoop的集群上搭建hbase,注意hadoop和hbase版本的对应
![](https://img.haomeiwen.com/i3693836/e87a50a8d6d5a77e.png)
2、修改hbase配置hbase-env.sh文件
cd /home/zhang/awin/hbase-1.4.1/conf
vim hbase-env.sh
![](https://img.haomeiwen.com/i3693836/457aaca791a2145c.png)
![](https://img.haomeiwen.com/i3693836/33a74b006944c5bd.png)
3、修改hbase配置hbase-site.xml文件
cd /home/zhang/awin/hbase-1.4.1/conf
vim hbase-site.xml
![](https://img.haomeiwen.com/i3693836/45bacd30f2a3315c.png)
/home/zhang/hbasetemp这个文件需要新建
hadoop上需要建立/hbase目录
![](https://img.haomeiwen.com/i3693836/e87a28c59f3e1d0f.png)
4、修改hbase配置regionservers文件
cd /home/zhang/awin/hbase-1.4.1/conf
vim regionservers
![](https://img.haomeiwen.com/i3693836/2213f9d49052a352.png)
5、hbase环境变量配置
vim ~/.bashrc
# Hbase Env
export HBASE_HOME=/home/zhang/awin/hbase-1.4.1
export PATH=$PATH:$HBASE_HOME/bin
6、关闭防火墙,启动
start-hbase.sh
![](https://img.haomeiwen.com/i3693836/6f67314aff7059c7.png)
7、检验,使用hbase shell验证
![](https://img.haomeiwen.com/i3693836/5c077fc4ac7f80ce.png)
http://192.168.1.150:60010/master-status
网友评论