Ubuntu 16.04 Hbase Installation

Source: Internet
Author: User

1. Unpack the installation package to the path/usr/local

1.1.sudo tar -zxf ~/download/hbase-1.1.2-bin.tar.gz-c/usr/local

2. Change the extracted filename hbase-1.1.2 to hbase for easy use

2.1sudo mv /usr/local/hbase-1.1.2/usr/local/hbase

3. View HBase version to test if HBase V ' installation was successful

3.1/usr/local/hbase/bin/hbase version

HBase has three modes of operation , single-machine mode, pseudo-distributed mode, and distributed mode . (Stand-alone mode here)

4: Configure command-line environment variable/etc/profile

export HBASE_HOME=/usr/local/hbaseexport PATH=$HBASE_HOME/bin:$PATH

5: Modify the HBase configuration file/conf/hbase-env.sh

JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64export HBASE_MANAGES_ZK=true

6: Edit. XML configuration File Conf/hbase-site.xml

<Configuration><Property><Name>hbase.rootdir</Name><Value>file:///usr/local/hbase/hbase-tmp</Value><The location where the description> data is stored.</Description></Property>< Span class= "Hljs-tag" > < Span class= "Hljs-title" > < Span class= "Hljs-tag" > </ Configuration>               
7. 接下来测试运行。首先切换目录至HBase安装目录/usr/local/hbase;再启动HBase。命令如下:
cd /usr/local/hbase bin /start-hbase .sh bin /hbase shell8.

sudo bin/start-hbase.sh for starting HBase

The Bin/hbase shell is used to open the shell command-line mode , and users can manipulate the HBase database by entering a shell command.

stop HBase from running with the following command:

sudo bin /stop-hbase .sh

Ubuntu 16.04 Hbase Installation

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.