One, the software package
Version: 1.1.2
wget https://archive.apache.org/dist/hbase/1.1.2/hbase-1.1.2-bin.tar.gz
Two, installation
Installation prerequisites: Java installation, hadoop installation, zk can choose to install (this installation tutorial installs zookeeper by itself)
1) Configure hbase-env.sh
As shown below:
Set HBASE_CLASSPATH to the related directory of hadoop;
Because I use the zookeeper installed by myself, choose HBASE_MANAGES_ZK as false, and do not enable the Zookeeper cluster that comes with HBase
2) Set hbase-site.xml
For distributed installation, select hbase.cluster.distributed as true; hbase.zookeeper.quorum selects the installed zookeeper cluster address;
3) Change regionservers
Add the slave list in the regionservers file:
4) Set environment variables
In ~/.bashrc
add the following files and execute $ source ~/.bashrc
commands to take effect
export HBASE_HOME=/usr/local/hbase
export PATH=$PATH:/usr/local/hbase/bin
5) Put the hdfs-site.xml and core-site.xml of hadoop under hbase/conf
cp /usr/local/hadoop/etc/hadoop/hdfs-site.xml /usr/local/hbase/conf
cp /usr/local/hadoop/etc/hadoop/core-site.xml /usr/local/hbase/conf
6) Distribute and synchronize the installation package
Copy the entire hbase installation directory to all slave servers remotely:
7) Start HBase
start-hbase.sh
Ø Verification
After startup, the master process is as follows, you can see the HMaster process:
The Slave process is as follows, you can see that there is HRegionServer:
Enter HBASE shell verification
Verification function: