Hadoop Preparation: HBase Distributed installation Experience

Source: Internet
Author: User
Keywords installation preparation XML

When configuring Http://www.aliyun.com/zixun/aggregation/13713.html ">hbase, the first thing to consider is whether the HBase version matches the version of Hadoop you installed, which I

Blog has made it clear that the Hadoop version matches the HBase version, which is officially provided. The following experiment is that I did not refer to the version of the match to try to speculate on the method, there was an error.

Version Description:

hadoop1.1.2

hbase-0.94.7 (under Lib is Hadoop-core-1.0.4.jar)

JDK 1.6.0.24

First, see if the version of Hadoop and HBase match (there are errors, this step can be omitted)

If it does not match, you can replace the hadoop-core-* jar package under Hadoop with the hadoop-core-* jar package under Hbase/lib.

My Hadoop version is hadoop-1.1.2.

The hbase version of Lib is

So overwrite the jar package:

Ii. Modify the configuration of the Hbase-env.xml

A specifies the path of JDK and Hadoop under Conf

B Open HBase Management of zookeeper

  

Iii. Modification of Hbase-site.xml documents

A) Copy the Hbase-default.xml under hbase/src/main/resource/to the hbase/conf directory.

b Modify the root directory of HBase

  

Note: Root road strength is built on the HDFs

  

C Set the distributed configuration to true so that HBase understands that we are doing distributed.

  

D Modify the temporary directory of HBase

  

E Configure zookeeper to run the machine, typically set to a base

  

f) Configure zookeeper to store data in a directory

  

Iv. Modification of Conf/regionservers.xml

Remove localhost and add Slave1 Slave2

V. Distributing the configured HBase to Slave1 and slave2

A) scp-r hbase yao@slave1:/home/yao/

b) Scp-r HBase yao@slave2:/home/yao/

Six, configure Vi/etc/profile under the file (each machine needs to configure this):

A) export hbase_home=/home/yao/hbase

Export path= $PATH: $HBASE _home/bin

Vii. Start HBase

A) start-hbase.sh

Error: The report is version incompatible.

HBase Kai, multiple textual research turns out to be I think more:

Two questions: 1 There is no need to replace the jar packages in the hbase at first because they are compatible.

2 This error is my lazy factor, will hbase/src/main/resource/under the Hbase-default.xml copy to the hbase/conf directory, only configured I need, the other did not delete, I go, It hbase-default the wrong thing.

b The above two errors are changed and can be started.

SLAVE1:

Slave2:

Close hbase:

When this is closed, the ellipsis is always constant, which is probably a configuration error.

You can go to HBase's root directory log file to view the logs, find errors.

Original link: http://blog.csdn.net/u014078192/article/details/27559513

Related Article

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.