HBase learning Summary (1): HBase download and installation, hbase Summary

Source: Internet
Author: User

HBase learning Summary (1): HBase download and installation, hbase Summary

(HBase is a type of Database: Hadoop database, which is a NoSQL storage system designed to quickly read and write large-scale data at random. This article introduces the whole process of HBase download and installation .)
1. HBase download
1. log on to the HBase official website at http://hbase.apache.org/. you can see the page shown on page 1:

Figure 1 logon page of HBase

2. Click "here" in the red box in figure 1 to go to the page 2.

Figure 2 download link

3. Click the link in the red box in Figure 2 to go To the download page 3.


Figure 3 download page

Click the file name to download the required HBase installation package and source code. In this example, HBase 1.0.1 is used.

Ii. HBase Installation
Upload the downloaded package (hbase-1.0.1-bin.tar.gz) to the Linux server. To avoid file permissions, we recommend that you upload the installation package to the root user. In this article, the installation package is stored in the "/root/zhouzx" directory. Because the purpose of this HBase installation is to learn by yourself, it is only installed with a standalone version. The real power of HBase is embodied in the cluster, which is the deployment method used in Big Data projects.
1. Unzip the installation package
Run the tar-zxvf hbase-1.0.1-bin.tar.gz command to unzip the installation package and get the hbase-1.0.1 ". Go to the directory to see the following files and directories:

-rw-r--r--  1 root root 140371 Apr 18 13:02 CHANGES.txt-rw-r--r--  1 root root  11358 Jan 25 17:47 LICENSE.txt-rw-r--r--  1 root root    897 Apr 18 12:55 NOTICE.txt-rw-r--r--  1 root root   1477 Apr  6 06:03 README.txtdrwxr-xr-x  4 root root   4096 Apr 18 12:58 bindrwxr-xr-x  2 root root   4096 Apr 18 12:55 confdrwxr-xr-x 12 root root   4096 Apr 18 13:14 docsdrwxr-xr-x  7 root root   4096 Apr 18 13:08 hbase-webappsdrwxr-xr-x  3 root root   4096 Jun 26 09:07 lib

By now, the HBase installation can come to an end. Set the environment below.

2. Deploy jdk and set the java environment
To make HBase run successfully, you also need to deploy jdk on the Linux machine and set the java environment. To support the latest HBase version, we recommend that you deploy jdk 1.7.0 or later.
Upload mongojdk1.7.0-linux.tar.gz to the/usr/java directory, run the tar-zxvf jdk1.7.0-linux.tar.gz command to get the contents under the/usr/java/jdk1.7.0 directory.
Next, you need to set up the java environment under the root user (the user who installed HBase. Run "vi. bash_profile" under the root user and copy the following command to the file:

export JAVA_HOME=/usr/java/jdk1.7.0export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Then run the ": wq" command to save the file content. The environment variable has been set. To determine whether the environment variables have been set successfully, run the "java-version" command directly. If the following content appears:

java version "1.7.0_60"Java(TM) SE Runtime Environment (build 1.7.0_60-b19)Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

Indicates that the jdk is successfully deployed and the java environment is set.

3. Start and Stop HBase
Go to the/root/zhouzx/hbase-1.0.1/bin directory and run the sh start-hbase.sh or./start-hbase.sh command to start HBase. If the following content appears:

starting master, logging to /root/zhouzx/hbase-1.0.1/bin/../logs/hbase-root-master-A10168992.out

HBase is successfully started.
Then, run the "sh stop-hbase.sh" or "./stop-hbase.sh" command to stop HBase. If the following content appears:

stopping hbase.................

HBase is stopped.

My public account: zhouzxi. Please scan the following QR code:

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

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.