解压
[atguigu@hadoop102 software]$ tar -zxvf hbase-1.3.1-bin.tar.gz -C /opt/module
修改配置文件
hbase-env.sh
export JAVA_HOME=/opt/module/jdk1.8.0_144export HBASE_MANAGES_ZK=false
hbase-site.xml
<configuration><property><name>hbase.rootdir</name><value>hdfs://hadoop102:9000/hbase</value></property><property><name>hbase.cluster.distributed</name><value>true</value></property><!-- 0.98后的新变动,之前版本没有.port,默认端口为60000 --><property><name>hbase.master.port</name><value>16000</value></property><property><name>hbase.zookeeper.quorum</name><value>hadoop102:2181,hadoop103:2181,hadoop104:2181</value></property><property><name>hbase.zookeeper.property.dataDir</name><value>/opt/module/zookeeper-3.4.10/zkData</value></property></configuration>
regionservers
改成集群的hostname
hadoop102
hadoop103
hadoop104
软连接hadoop配置文件
ln -s /opt/module/hadoop-2.7.2/etc/hadoop/core-site.xml
/opt/module/hbase/conf/core-site.xml
ln -s /opt/module/hadoop-2.7.2/etc/hadoop/hdfs-site.xml
/opt/module/hbase/conf/hdfs-site.xml
分发
xsync hbase/
启动停止
bin/start-hbase.sh
bin/stop-hbase.sh
