1. Environment configuration
This cluster has three nodes
Master:hpd1
Slave:hdp2,hdp3
Os:centos 6.5
hadoop:2.2.0
2. Download the installation package
HBase 0.98.0 Download Address: http://mirror.bit.edu.cn/apache/hbase/hbase-0.98.0/
3. Unzip the installation to a local directory
$tar-ZXVF hbase-0.98.0-hadoop2-bin.tar.gz
Configuring Hbase_home into environment variables
4. Configuration
Three files need to be modified: hbase-env.sh hbase-site.xml regionservers
Modify Hbase-env.sh
Export Java_home=/usr/java/default
If you do not use zookeeper in HBase, export HBASE_MANAGES_ZK is set to False if you use zookeeper in HBase and set to True
Modify Hbase-size.sh
Modify the Regionservers file
Add the Datanode node to the file with one row per node
Copy hbase installation files to other nodes
$SCP-R hbase-0.98.0-hadoop2/root@hdp2:/home/shenlong/distribution/hbase/
$SCP-R hbase-0.98.0-hadoop2/root@hdp3:/home/shenlong/distribution/hbase/
5. Start
start-hbase.sh
can be accessed via Http://10.61.130.165:60010/master-status
The installation deployment is complete.