Node1 192.168.88.151
Node2 192.168.88.152
Node3 192.168.88.153
三台都要配
wget -c http://archive.apache.org/dist/hbase/2.2.4/hbase-2.2.4-bin.tar.gz
tar -xzf hbase-2.2.4-bin.tar.gz
mkdir -p /export/server/hbase/
\mv hbase-2.2.4 /export/server/hbase/
useradd hadoop
chown -R hadoop:hadoop /export/server/hbase/
在Hadoop配置的基础上,配置环境变量HBASE_HOME:
vim /etc/profile
export HBASE_HOME=/export/server/hbase/
export PATH=$PATH:$HBASE_HOME/bin
vi /export/server/hbase/hbase-2.2.4/conf/hbase-env.sh
export JAVA_HOME=/export/server/jdk1.8.0_241
配置vi /export/server/hbase/hbase-2.2.4/conf/hbase-site.xml文件,修改配置文件代码如下:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://node1:8020/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.master.port</name>
<value>60000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>node1:2181,node2:2181,node3:2181</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/export/server/zookeeper/data</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
</configuration>
配置Regionservers
vi /export/server/hbase/hbase-2.2.4/conf/regionservers
#去掉默认的localhost,加入:
node1
node2
node3
启动与停止Hbase服务
/export/server/hbase/hbase-2.2.4/bin/start-hbase.sh
#查看集群状态
/export/server/hbase/hbase-2.2.4/bin/hbase shell
......
hbase(main):001:0> status
1 active master, 0 backup masters, 3 servers, 0 dead, 0.6667 average load
Took 1.0844 seconds
hbase(main):002:0> exit
/export/server/hbase/hbase-2.2.4/bin/stop-hbase.sh
node1:16010WEB界面
标签:bin,server,centos7,export,2.2,node1,集群,hbase From: https://www.cnblogs.com/snguo/p/16784614.html