Installing Hbase1.2.4 on "Hadoop" Hadoop 2.7.3

Source: Internet
Author: User
Tags zookeeper

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.