1. Prepare the installation package

Hbase Official Website download

Micro cloud download | in tar directory

Two, version compatibility

Role allocation

node Master Regionserver
cluster-master yes no
cluster-slave1 backup yes
cluster-slave2 no yes
cluster-slave3 no yes

4. Configuration modification

hbase-env.sh

exportJAVA_HOME = / opt/JDK/jdk1.8.0 _221Copy the code

hbase-site.xml

<configuration> <! - configuration HDFS address - > < property > < name >. Hbase rootdir < / name > < value > HDFS: / / jinbill: 8020 / hbase < value > / < / property > <! - enable fully distributed - > < property > < name >. Hbase cluster. The distributed < / name > < value >true</value> </property> <! Quorum </name> <value>cluster-master,cluster-slave1,cluster-slave2</value> </property> <! -- This is based on the configuration specified in the zoo. CFG configuration of your zK, Also can not configuration - > < property > < name >. Hbase zookeeper. Property. The dataDir < / name > < value > / opt/zookeeper < value > / < / property > </configuration>Copy the code

Create a backup-master file

# add the backup master node
cluster-slave1
Copy the code

regionservers

# Configure all RegionServer nodes
cluster-slave1
cluster-slave2
cluster-slave3
Copy the code

Send all configuration files to the slave node

Five, start,

Start on the master node

./start-hbase.sh
Copy the code

172.15.0.2 UI address: 16010