HBase-pseudo-distributed installation process

Source: Internet
Author: User
Tags zookeeper hdfs dfs

Environment

-Hadoop

-No zookeeper (with HBase's own zookeeper, of course later I will switch to independent zookeeper)

HBase Introduction

Reference: What is HBase?

HBase Download

Address: http://mirrors.shu.edu.cn/apache/hbase/stable/

I chose hbase-1.4.8-bin.tar.gz.

Unzip, put the file under the/usr/local/hbase

Installation (configuration file)

1-. BASHRC (optional, for later operation convenient I configured)

Add $HBASE _home environment variable

CD ~ VI BASHRC export $HBASE _home=/usr/local/HBASE export PATH= $PATH: $HBASE _home/bin

2-hbase.env.sh (/usr/local/hbase/conf)

cd/usr/local/hbase/conf vi hbase-env.sh export java_home=....//JDK Path Export Hbase_mana Ges_zk=true //using HBase's own zookeeper 

3-hbase.site.xml (/usr/local/hbase/conf)

cd/usr/local/hbase/conf
VI Hbase-site.xml

Add content

<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://kouri (localhost,127.0.0.1):9000/hbase</value>//hbase dependent on HDFs-can view folders on HDFs
</property>
<property>
<name>hbase.cluster.distributed</name>//Use of distributed
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/hbase/data/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>//Start ZK server list, distributed under must match
<value>Kouri</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>//client Link Zookeeper port, default 2181
<value>2182</value>
</property>
</congiguration>

Start (start Hadoop first)

start-hbase.sh

Shut down

stop-hbase.sh

View process

JPs

Appears: Hmaster,hquorumpeer,hregionserver

Related demos

  View HBase Scenarios in HDFs

HDFs dfs-ls/hbase

Start the HBase shell

HBase Shell

Web interface for HBase

http://localhost:  -HBase 1 ... after version

HBase into the pit to solve

Refer to another article: deceptive's hbase!!!

X

HBase-pseudo-distributed installation process

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.