HBase installation Configuration

Source: Internet
Author: User

1. Download HBase installation package

http://www.apache.org/dyn/closer.cgi/hbase/

2, put the hbase-1.0.1.1-bin.tar.gz into their own selected folder, such as/root/software and then unzip. The shell command is as follows:

Tar zxvf hbase-1.0.1.1-bin.tar.gz

3, into the hbase-1.0.1.1 after decompression

CD hbase-1.0.1.1

4. Configuration files

1) hbase-env.sh

Uncomment the JDK and make the following modifications (my JDK installation path):

# The Java implementation to use. Java 1.7+ required.

Export java_home=/usr/java/jdk1.7.0_45

2) Hbase-site.xml

Modify the following:

<configuration>

<property>

<name>hbase.rootdir</name>

<value>hdfs://10.118.46.22:9000/hbase</value>

</property>

<property>

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

<value>true</value>

</property>

<property>

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

<value>10.118.46.22</value>

</property>

<property>

<name>dfs.replication</name>

<value>3</value>

</property>

</configuration>

5. Start HBase

[Email protected] hbase-1.0.1.1]# bin/start-hbase.sh

To see if the launch was successful

JPS See if there are any of the following

7758 Hregionserver

7632 Hmaster

7572 Hquorumpeer


6. HBase Shell command

[[email protected] hbase-1.0.1.1]# bin/hbase shell


Slf4j:class path contains multiple slf4j bindings.

Slf4j:found Binding in [jar:file:/root/sherry/hbase-1.0.1.1/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/ Staticloggerbinder.class]

Slf4j:found Binding in [jar:file:/root/sherry/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/ Slf4j/impl/staticloggerbinder.class]

Slf4j:see http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

Slf4j:actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

HBase Shell; Enter ' help<return> ' for list of supported commands.

Type "exit<return>" to leave the HBase Shell

Version 1.0.1.1, Re1dbf4df30d214fca14908df71d038081577ea46, Sun may 12:34:26 PDT 2015


HBase (Main):001:0>





HBase installation Configuration

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.