安装程序,解压拷贝
先设定hbase安装目录
/home/opt/hbase-2.2.3
tar -xvzf hbase-2.2.3.tar.gz
mv hbase-2.3.3 /home/opt
配置环境变量
vim /etc/profile添加如下
export HBASE_HOME=/home/opt/hbase-2.2.3
export PATH=$PATH:$HBASE_HOME/bin
source /etc/profile
创建hbase的pids目录
先创建临时的pids文件夹
mkdir -pv /var/hadoop/pids
配置hbase-env.sh
export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP="true"
export HBASE_CLASSPATH=/home/opt/hadoop-2.9.2/etc/hadoop
export HBASE_PID_DIR=/var/hadoop/pids
export JAVA_HOME=/opt/jdk1.8.0_231
export HBASE_MANAGES_ZK=false
配置hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://hadoop34:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.master</name>
<value>master:6000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hadoop34:2181,hadoop35:2181,hadoop36:2181</value>
</property>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property</name>
<value>/home/opt/apache-zookeeper-3.5.7-bin/data</value>
</property>
<!-- 解决启动HMaster无法初始化WAL的问题 -->
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
</configuration>
启动HBASE
start-hbase.sh
启动hbase前后的hadoop34机器jps对比
启动hbase前后的hadoop35机器jps对比
启动hbase前后的hadoop36机器jps对比
http://10.99.69.34:16010/master-status
标签:opt,export,pids,集群,home,2.2,hbase,HBASE From: https://blog.51cto.com/lenglingx/6393405