HBase Cluster Setup

Source: Internet
Author: User

JDK version and hbase correspondence relationship

HBase Version JDK 6 JDK 7 JDK 8
2 Not supported Not supported Yes
1.3 Not supported Yes Yes
1.2 Not supported Yes Yes
1.1 Not supported Yes Running with JDK 8 would work, but isn't well tested.
1 Not supported Yes Running with JDK 8 would work, but isn't well tested.
0.98 Yes Yes Running with JDK 8 works It is not a well tested. Building with JDK 8 would require removal of the deprecated remove () method of Thepoolmap class and is under consideration . See HBASE-7608 For more information on JDK 8 support.
0.94 Yes Yes N/A

Hadoop and HBase correspondence relationship

hbase-0.94.x hbase-0.98.x
(Support for Hadoop 1.1+ is eprecated.)
hbase-1.0.x (Hadoop 1.x is not supported) hbase-1.1.x hbase-1.2.x hbase-1.3.x
hadoop-1.0.x X X X X X X
hadoop-1.1.x S Nt X X X X
hadoop-0.23.x S X X X X X
Hadoop-2.0.x-alpha Nt X X X X X
Hadoop-2.1.0-beta Nt X X X X X
Hadoop-2.2.0 Nt S Nt Nt X X
hadoop-2.3.x Nt S Nt Nt X X
hadoop-2.4.x Nt S S S S S
hadoop-2.5.x Nt S S S S S
Hadoop-2.6.0 X X X X X X
hadoop-2.6.1+ Nt Nt Nt Nt S S
Hadoop-2.7.0 X X X X X X
hadoop-2.7.1+ Nt Nt Nt Nt S S

Hadoop version Support matrix "S" = Supported "X" = Not supported "NT" = Not tested
The software versions we use here are as followsHadoop 2.7.1Hbase hbase-1.2.4jdk1.8.0_101
The first step, 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

Step two , unzip to the server

TAR-ZXVF hbase-1.2. 4
The third step is to configure the HBase cluster to modify 3 files (first the ZK cluster is already installed) Note: Since HBase final data is stored in HDFs, Hadoop's hdfs-site.xml and core-site.xml need to be put into hbase/ Conf 1. Modify the hbase-env.sh on master
Export JAVA_HOME=/USR/JAVA/JDK1. 8. 0_101
Tells HBase to use the external ZK if using internal ZK, set to True (single-machine pseudo-distributed)
Export hbase_manages_zk=false
 is default . Export Hbase_heapsize=8g

2. Modify Hbase-site.xml

<configuration>    <property>            <name>hbase.rootdir</name>            <value>hdfs: // node1:9000/hbase</value>    </property>    <property>            <name>hbase.cluster.distributed</name>            <value >true</value>    </property>    <property>            <name> Hbase.zookeeper.quorum</name>            <value>node1:2181, Node2:2181, Node3:  2181</value>    </property></configuration>

3. Specify the machine as Regionserver and do not specify master separately. Where: on which machine to start, which is master, in the Regionservers file description to start the Hregionserver

Vim Regionserversnode1node2node3node4

Fourth step, copy the configured hbase files to the other nodes

Fifth Step:

1. Start the ZK for all hbase respectively./zkserver.sh start start the HDFs cluster start-dfs.sh start HBase and run on the master node: Star T-hbase.sh6. Accessing the hbase1.2.4 version management page through a browser node1:16010 (differs from version 0.98)7. To enable cluster reliability, start multiple hmaster (optional) hbase-daemon.sh start master


HBase Cluster Setup

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.