HBase安装(2.4.9)
1.下载&解压安装包
wget https://www.apache.org/dyn/closer.lua/hbase/2.4.9/hbase-2.4.9-bin.tar.gz
tar -zxvf hbase-2.4.9-bin.tar.gz
2.编辑hbase-env.sh
export JAVA_HOME=/home/jdk/jdk1.8.0_191
export HBASE_LOG_DIR=/home/hbase/logs
export HBASE_MANAGES_ZK=false
3.编辑hbase-site.xml
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>/home/hbase/tmp</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://hadoop01:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hadoop01,hadoop02,hadoop03</value>
</property>
<!-- hbase在zk上数据的根目录znode节点 -->
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
4.编辑regionservers文件
hadoop02
hadoop03
5.常用命令
./start-hbase.sh
./stop-hbase.sh
6.hbase webUI
http://localhost:16010/
|