04_hbase Fully distributed environment construction

Source: Internet
Author: User

Hbase Distributed detailed installation steps

The fully distributed HADOOP environment has been built (see 01_hadoop fully distributed environment).

Iv. installation configuration Hbase

Hadoop User Login

1. Download hbase-0.94.23.tar.gz

2. Extract hbase to a directory

3, configure the HBase installation directory under conf file hbase-env.sh, export java_home

File not added:

# The Java implementation to use. Required.

Export JAVA_HOME=/USR/JAVA/JDK1.6.0_20

4, the configuration /home/coole/hbase-0.20.6/conf file Hbase-site.xml

<?xml version= "1.0"?>

<?xml-stylesheet type= "text/xsl" href= "configuration.xsl"?>

<configuration>

<property>

<name>hbase.rootdir</name>

<value>hdfs://H1: 9000/hbase</value> Note: The path here must be the same as the Hadoop core-site.xml configuration under the same path!!!

</property>

<property>

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

<value>true</value>

</property>

<property>

<name>hbase.master.port</name>

<value>60000</value>

</property>

<property>

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

<value>slave</value>

</property>

</configuration>

Hbase.rootdir set hbase directory on HDFs , host named HDFs Namenode host on which the node resides

Hbase.cluster.distributed is set to trueto indicate that the hbase cluster is fully distributed

Hbase.master setting the master hostname and port of HBase

Hbase.zookeeper.quorum set zookeeper Host, the official recommended setting is 3,5 ,7 is better, odd.

5, the configuration/home/coole/hbase-0.20.6/conf file Regionservers

H2

H3

6, set environment variables, open /etc/profile file with Gedit to add:

Export hbase_home=/home/coole/hbase-0.20.6

Export path= $PATH: $HBASE _home/bin

After completion, use the source/etc/profile command to make it effective.

7, after the completion of the above changes, the master of hbase copy to slave , to ensure that the directory structure consistent, you can use the following command:

scp–r/home/hadoop/hbase-0.94.23 [Email Protected]:/home/hadoop

scp–r/home/hadoop/hbase-0.94.23 [Email Protected]:/home/hadoop

8. Start Hbase

start-hbase.sh

stop-hbase.sh

9. Use the JPS command to see If HBase started successfully

On the master can see hmaster start success;

you can see that hregionserver started successfully on the slaves .

Note:

1. Install HBase 0.20. The 5 version comes with zookeeper-3.2.2, so you do not need to install zookeeper separately.

2, hbase by default through zookeeper management, configuration items in the/jz/hbase-0.20.5/conf/hbase-env.sh file:

# tell HBase whether it should manage it's own instance of Zookeeper or not.

# Export Hbase_manages_zk=true If you need to take the zookeeper with your own installation, you can cancel the comment and change the true to false. Otherwise , when you start HBase, you will be prompted for the address to be occupied. However, it does not affect the normal use of hbase .

3, through the Shell console want hbase insert Chinese data will be error, this is because hbase is only the storage of bytes, Use the program to change Chinese characters to byte input.





04_hbase Fully distributed environment construction

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.