1、修改hbase中的conf/hbase-env.sh
# The java implementation to use. Java 1.6 required.
export JAVA_HOME=/usr/java/jdk1.7.0_79
# The java implementation to use. Java 1.6 required.
export JAVA_HOME=/usr/java/jdk1.7.0_79
# Tell HBase whether it should manage it's own instance of Zookeeper or not.
export HBASE_MANAGES_ZK=false
export HBASE_MANAGES_ZK=false
2、增加hbase中的conf/hbase-site.xml (hbb为服务名)
<property>
<name>hbase.rootdir</name>
<value>hdfs://
hbb:8020/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hadoop03,hadoop04,hadoop05</value>
</property>
3、
修改conf/regionservers,配置
regionservers节点
hadoop03
hadoop04
hadoop05
4、
修改conf/backup-masters,配置备用Hmaster
hadoop02
5、将hadoop中的hdfs-site.xml拷贝到,hbase的conf里
6、启动:bin/start-hbase.sh
7、停止:bin/stop-hbase.sh(稍等,时间稍长)