export HBASE_HOME=/usr/local/hadoop/hbase-2.0.0
export PATH=$HBASE_HOME/bin:$PATH
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.195.132:9000/hbase</value>
</property>
<!--启用分布式集群-->
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<!--默认HMaster HTTP访问端口-->
<property>
<name>hbase.master.info.port</name>
<value>16010</value>
</property>
<!--默认HRegionServer HTTP访问端口-->
<property>
<name>hbase.regionserver.info.port</name>
<value>16030</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.195.132:2181,192.168.195.133:2181,192.168.195.134:2181</value>
</property>
<property>
<name>hbase.coprocessor.abortonerror</name>
<value>false</value>
</property>
</configuration>
export JAVA_HOME=/usr/local/java/jdk1.8.0_161
export HBASE_CLASSPATH=/usr/local/hadoop/etc/hadoop
export HBASE_MANAGES_ZK=false
export TZ="Asia/Shanghai"
192.168.1.xxx
- 复制到其余两个slave节点上
- 启动集群 start-hbase.sh
- hbase shell