Based Docker building large data clusters (seven) Hbase build
First, prepare the installation package
Hbase official website to download
Micro Cloud Download | in the tar directory
Second, the version compatible
Third, the role assignment
node | Master | Regionserver |
---|---|---|
cluster-master | yes | no |
cluster-slave1 | backup | yes |
cluster-slave2 | no | yes |
cluster-slave3 | no | yes |
Fourth, configuration changes
hbase-env.sh
export JAVA_HOME=/opt/jdk/jdk1.8.0_221
hbase-site.xml
<configuration>
<!--配置HDFS地址-->
<property>
<name>hbase.rootdir</name>
<value>hdfs://jinbill:8020/hbase</value>
</property>
<!--启用完全分布式-->
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<!--zk地址-->
<property>
<name>hbase.zookeeper.quorum</name>
<value>cluster-master,cluster-slave1,cluster-slave2</value>
</property>
<!--这个根据自己的zk的zoo.cfg配置中指定的配置,也可以不配置-->
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/zookeeper</value>
</property>
</configuration>
New backup-master file
# 添加备份master节点,主节点挂了,自动切换
cluster-slave1
regionservers
# 配置所有regionserver节点
cluster-slave1
cluster-slave2
cluster-slave3
All profiles will be sent to the slave node
Fifth, start
Start the master node
./start-hbase.sh
UI Institute Add
172.15.0.2:16010