hbase-2.1.9 fully distributed deployment
- Prepare to install the file HBase-2.1.9
1. Choose the installation version
http://hbase.apache.org/book.html#basic.prerequisites
Select the appropriate hbase version according to the hadoop version. In this experiment, the hadoop version is 2.7.7 and hbase is 2.1.9
- Download HBase in Windows
Download URL: https://mirror.bit.edu.cn/apache/hbase/2.1.9/hbase-2.1.9-bin.tar.gz
- Use filezilla to transfer files to a virtual machine
(I have already placed it before)
- Start zookeeper cluster
[root@h1 sbin]# zkServer.sh start
[root@h2 sbin]# zkServer.sh start
[root@h3 sbin]# zkServer.sh start
Three, start the hadoop cluster
[root@h1 hadoop-2.7.7]# sbin/start-all.sh
Fourth, unzip the HBase file
- Switch to the directory where the HBase installation file is located in hadp01
cd ~/download
- Unzip to the apps directory
tar -xzvf hbase-2.1.9-bin.tar.gz -C / root / app
- Rename
[root@h1 app]# mv hbase-2.1.9/ hbase
Five, modify the HBase configuration file
First enter the conf directory
- Modify hbase-env.sh
export JAVA_HOME=/root/app/jdk1.8.0_201
export HBASE_MANAGES_ZK=false
And comment out the following two lines
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
Modify hbase-site.xml
Modify regionservers
Soft link hadoop configuration file to HBase
[root@h1 conf]# ln -s /root/app/hadoop-2.7.7/etc/hadoop/core-site.xml /root/app/hbase/conf/core-site.xml
[root@h1 conf]# ln -s /root/app/hadoop-2.7.7/etc/hadoop/hdfs-site.xml /root/app/hbase/conf/hdfs-site.xml
- Start HBase service
[root@h1 hbase]# bin/start-hbase.sh
Seven, visit port 16010 to visit HBase page
Successful deployment!