Hbase-1.0.1 installation, hbase1.0.1

Source: Internet
Author: User

Hbase-1.0.1 installation, hbase1.0.1

1. Modify the hbase-site.xml configuration file under the hbase/conf directory and add

<Configuration>
<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. zookeeper. quorum </name>
<Value> master, slaves1, and slaves2 </value>
</Property>


<Property>
<Name> hbase. master </name>
<Value> hdfs: // master: 60000 </value>
</Property>


<Property>
<Name> hbase. zookeeper. property. dataDir </name>
<Value>/home/lee/opt/zookeeper_data1 </value>
</Property>


<Property>
<Name> hbase.master.info. bindAddress </name>
<Value> master </value>
</Property>


<Property>
<Name> hbase.master.info. port </name>
<Value> 60010 </value>
</Property>


<Property>
<Name> hbase. regionserver. port </name>
<Value> 16020 </value>
</Property>


<Property>
<Name> hbase.regionserver.info. port </name>
<Value> 16030 </value>
</Property>


<Property>
<Name> hbase.regionserver.info. port. auto </name>
<Value> true </value>
</Property>


<Property>
<Name> hbase.regionserver.info. bindAddress </name>
<Value> 0.0.0.0 </value>
</Property>


</Configuration>

 

2, modify the hbase-env.sh file, add:

Export JAVA_HOME =/home/ld/Lee/jdk1.7.0 _ 67

Export HBASE_CLASSPATH =/home/ld/Lee/hadoop-2.6.0/etc/hadoop

Export port HBASE_HEAPSIZE = 2048

Export HBASE_MANAGES_ZK = false

 

Among them, JAVA_HOME indicates the java installation directory, and HBASE_CLASSPATH points to the directory where Hadoop configuration files are stored, so that HBase can find the HDFS configuration information. Because Hadoop and HBase are deployed on the same physical node in this article, therefore, it points to the conf directory under the Hadoop installation path. The unit of HBASE_HEAPSIZE is MB. You can set it as needed and the actual remaining memory. The default value is 1000. HBASE_MANAGES_ZK = false indicates that HBase uses the existing Zookeeper instead of its own.

 

3. Edit the regionservers File

Slaves1

Slaves2

4. Configure the other two

Copy the hbase installation file to the other two machines:

$ Scp-r/home/ld/Lee/hbase slaves1:/home/ld/Lee/

$ Scp-r/home/ld/Lee/hbase slaves2:/home/ld/Lee/

 

Log on to/home/ld/Lee/of slaves1 and slaves2, and run the ls command to view the corresponding file.

5. Configure the hbase path

Add the following statement to/etc/profile:

Export HBASE_HOME =/home/ld/Lee/hbase

Export PATH = $ HBASE_HOME/bin: $ PATH

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.