HBase Pseudo-distributed construction

Source: Internet
Author: User

Pseudo-distribution construction of HBase

Installed version: hbase-0.94.7-security.tar.gz

Download path: http://hbase.apache.org

1. Unzip, rename, set environment variables

1 2 3 tar-zxvf hbase-0.94.7-45 mv hbase-0.94.7-security.tar.gz hbase

#设置环境变量

1 vi/etc/   profile2 export hbase_home= source/etc/profile

2. Modify the configuration file

CD $HBASE _home/conf/

VI hbase-env.sh

Two places modified:

Export Java_home=

#HBase自己来管理zookeeper实例

Export Hbase_manages_zk=true

VI hbase-site.xml, add the following:

1<property>2<name>hbase.rootdir</name>3<value>hdfs://hadoop0:9000/hbase</value>4</property>5<property>6<name>hbase.cluster.distributed</name>7<value>true</value>8</property>9<property>Ten<name>hbase.zookeeper.quorum</name> One<value>hadoop0</value> A</property> -<property> -<name>dfs.replication</name> the<value>1</value> -</property>

Note: The host and port number of the _home/conf/hbase-site.xml is $HBASE Hbase.rootdir with $hadoop_home/conf/ Core-site.xml's fs.default.name host and port number are the same.

(optional)

The contents of VI regionservers are HADOOP0

3. Start command: start-hbase.sh

Note: Before starting HBase, make sure that Hadoop is healthy and can write to the file (non-secure mode).

4. Verify that:

(1) Implementation of JPS, the discovery of a new 3 Java processes, respectively, Hmaster,hregionserver,hquorumpeer

(2) Http://hadoop0:60010/master-status

HBase Pseudo-distributed 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.