Deploy HBase in Ubuntu

Source: Internet
Author: User
To install Hadoop, refer to: Hadoop.

Install Hadoop, see: http://www.linuxidc.com/Linux/2012-06/63948.htm

Install Zookeeper, refer to: http://www.linuxidc.com/Linux/2012-07/65607.htm

Install hbase

Cd/home/hadoop/hbase
Sudo wget http://mirror.bit.edu.cn/apache/hbase/stable/hbase-0.92.1.tar.gz # Download hbase
Tar xvzf hbase-0.92.1.tar.gz # Extract
Ln-s hbase-0.92.1.tar.gz hbase # Create soft link

Edit/etc/profile and set Environment Variables

# Hbase Configuration
Export HBASE_HOME =/home/hadoop/hbase/
Export PATH = $ PATH: $ HBASE_HOME/Bin

Hbase is based on hdfs, hbase configuration mainly involves three files under the conf directory: hbase-env.sh, hbase-site.xml, regionservers.

Edit hbase-env.sh

Export JAVA_HOME =/usr/lib/jvm/java-6-openjdk-i386
Export HBASE_CLASSPATH =/home/hadoop/conf
Export HBASE_OPTS = " -XX: + UseConcMarkSweepGC "
Export HBASE_MANAGES_ZK = True

Edit hbase-site.xml

" 1.0 "?>
" Text/xsl "Href = " Configuration. xsl "?>


Hbase. rootdir
Hdfs: // namenode/hbase
The directory shared by region servers.


Hbase. master. port
60000


Hbase. cluster. distributed
True


Hbase. zookeeper. property. clientPort
2181


Hbase. zookeeper. quorum
Zookeeper

Modify regionservers

Localhost # Local Machine

Start hbase

Start-hbase.sh

Enter the jps command to view the process

NameNode
DataNode
Jps
HRegionServer
SecondaryNameNode
TaskTracker
JobTracker
QuorumPeerMain
HMaster

Test hbase

Hbase shell

Create 'test', 'cf'

Stop hbase

Stop-hbase.sh

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.