解压缩hbase-1.2.6-bin.tar.gz并重命名为hbase,编辑/hbase/conf/hbase-env.sh
$ egrep -v '^$|^#'hbase-env.sh
exportJAVA_HOME=/usr/local/java/jdk1.8.0_101
exportHBASE_CLASSPATH=/data/hadoop/etc/hadoop
exportHBASE_OPTS="-XX:+UseConcMarkSweepGC"
exportHBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m-XX:MaxPermSize=128m"
exportHBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m-XX:MaxPermSize=128m"
exportHBASE_MANAGES_ZK=false
编辑hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://Master:9000/hbase</value>
</property>
<property>
<name>hbase.master</name>
<value>Master</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>Master,Slave1,Slave2</value>
</property>
<property>
<name>zookeeper.session.timeout</name>
<value>120000</value>
</property>
<property>
<name>dfs.support.append</name>
<value>true</value>
</property>
</configuration>
添加Slave1,Slave2 到regionservers
复制hbase到其他两个节点
scp -r /data/hbase Slave1:/data/
scp -r /data/hbase Slave2:/data/
启动hbase:/data/hbase/bin/start-hbase.sh