Original articles, reproduced please mark from http://blog.csdn.net/lsttoy/article/details/53406840.
First, go to Apache to see the official support version
You can see that hadoop2.4.x later versions basically support hbase1.2.4.
The installation starts next.
The first step is to download the latest version from the Apache Foundation
Https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/1.2.4/hbase-1.2.4-bin.tar.gz
If you can not go to csdn and other major sites to download.
Step two , unzip to the server
MV Hbase-1.2.4/home/hbase
The third step, set the relevant configuration file conf
1. First copy the hdfs-site.xml and core-site.xml under Hadoop into the Conf folder under HBase.
2. Then modify the hbase-env.sh
Configure Javahome and set zookeeper external.
Export java_home=/usr/local/java/jdk1.8.0_71
Export Hbase_manages_zk=false
3. Modify Hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs:// master/usr/app/data/hbase</value>
</property>
<property>
<name> hbase.cluser.distributed</name>
<value>true</value>
</property>
< property>
<name>base.zookeeper.quorum</name>
<value>slave1:2181,slave2:2181, slave3:2181</value>
</property>
</configuration>
4. Set slave
Write to your slave node
Vim regionservers
slave1
slave2
slave3
Fourth step, setting the configuration file is valid
Source/etc/profile
Fifth step, start HBase
start-hbase.sh
If the display
[Root@master bin]# start-hbase.sh
starting master, logging To/home/hbase/logs/hbase-root-master-master.out
[Root@master bin]# JPS
16945 JPS
16867 hmaster
It means success.