HBase distributed deployment

Source: Internet
Author: User

Prerequisites

Hadoop cluster is successfully built. Here we use Hadoop1.0.3 + HBase0.94.1

Configure HBase

1. Modify conf/hbase-env.sh and add jdk support

Export JAVA_HOME =/home/hadoop/jdk1.6.0 _ 39

2. Modify conf/hbase-site.xml

<Property>

<Name> hbase. rootdir </name>

<Value> hdfs: // master: 9000/hbase </value>

</Property>

<Property>

<Name> hbase. cluster. distributed </name>

<Value> true </value>

</Property>

<Property>

<Name> hbase. master </name>

<Value> hdfs: // master: 9000 </value>

</Property>

<Property>

<Name> hbase. zookeeper. quorum </name>

<Value> master, slave1, and slave2 </value>

</Property>

<Property>

<Name> hbase. zookeeper. property. dataDir </name>

<Value>/home/hadoop/data/zookeeper </value>

</Property>

3. Modify conf/regionservers

Slave1

Slave2

Add all datanode nodes configured for Hadoop)

4. scp to all subnodes

5. Start HBase

$ ../Bin/start-hbase.sh

HBase basic operations

1. HBase web Interface

Http: // master: 60010/

2. shell client HBase shell command)

$./Bin/hbase shell

 

This article from the "Li xiaolazy keyboard Road" blog, please be sure to keep this http://libangsen.blog.51cto.com/3599182/1135723

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.