Centos (64-bit) installation HBase detailed steps

Source: Internet
Author: User

HBase is a distributed, column-oriented, open-source database that comes from the Google paper "Bigtable: A distributed storage system of structured data" written by Fay Chang. Just as BigTable leverages the distributed data store provided by the Google File system, HBase provides bigtable-like capabilities on top of Hadoop. HBase is a sub-project of the Apache Hadoop project. HBase differs from the general relational database, which is a database suitable for unstructured data storage. The other difference is that HBase is column-based instead of row-based patterns.

Linux Environment: CentOS6.5

HBase version: hbase-0.94.16

HBase Official website: http://hbase.apache.org

1 Operating Environment Description 1.1 hard Software environment

L host operating system: Windows 4 bit, dual core, 2.2g,6g memory

L Virtual Software: Vmware®workstation 9.0.0 build-812388

L Virtual Machine Operating system: CentOS 64-bit, single core, 1G memory

L JDK:1.7.0_55 Bit

L hadoop:1.1.2

1.2 Machine network Environment

The cluster consists of three nodes: 1 Namenode, 2 datanode, where nodes can ping each other. The node IP address and host name are distributed as follows:

Serial number

IP Address

Machine name

Type

User name

Running processes

1

10.88.147.221

Hadoop1

Name node

Hadoop

NN, SNN, Jobtracer

2

10.88.147.222

Hadoop2

Data node

Hadoop

DN, Tasktracer

3

10.88.147.223

Hadoop3

Data node

Hadoop

DN, Tasktracer

All nodes are CentOS6.5 64bit systems, firewalls are disabled, a Hadoop user is created on all nodes, and the user home directory is/usr/hadoop. A directory/usr/local/hadoop is created on all nodes, and the owner is a Hadoop user.

2 written Assignment 1: Installation HBase2.1 written assignment 1 contents

Install HBase, conditional students are fully distributed installation, the installation process and the final test of the success of the interface screenshot submitted.

2.2 Installation process 2.2.1 Download HBase installation package

Download the HBase stable release package from the Apache website (hbase.apache.org):

Http://mirrors.cnnic.cn/apache/hbase/hbase-0.96.2/

2.2.2 Upload HBase

Move the downloaded hbase-0.96.2-hadoop1-bin.tar.gz installation package to the/home/hadoop/downloads directory

2.2.3 Unzip and move the directory

1. Use the following command to extract the Hbase-0.96.2-hadoop1 folder that appears after decompression:

Cd/home/hadoop/downloads

TAR-ZXF hbase-0.96.2-hadoop1-bin.tar.gz

2. Start HBase

#/usr/hbase-0.94.16/bin/start-hbase.sh

If an error

+======================================================================+
| Error:java_home is not set and JAVA could isn't be found |
+----------------------------------------------------------------------+
| Download the latest Sun JDK from the Sun Java Web site |
| > http://java.sun.com/javase/downloads/< |
| |
|                                   Hadoop requires Java 1.6 or later. |
| Note:this script would find Sun Java whether you install using the |
|                             Binary or the RPM based installer. |
+======================================================================+

3, install the JDK, open the following link to download the latest JDK version

Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

[Email protected] tools]# Mkdir/usr/local/java # #建立目录

[Email protected] tools]# MV jdk-7u79-linux-64.bin/usr/local/java/

Move packages to/usr/java

[Email protected] tools]# cd/usr/java/

[Email protected] java]# chmod 777jdk-7u79-linux-64.bin # #给安装包执行权限

[[email protected] java]#./jdk-7u79-linux-64.bin# installation succeeded when #安装出现Done

3) Configure Environment variables

After installation, you need to configure the JDK environment variables.

Modify the/etc/profile file and add the following information at the end:

Java_home=/usr/java/jdk1.7.0_29

Path= $PATH: $JAVA _home/bin

Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

Export Java_home PATH CLASSPATH

When you have finished adding, save the exit.

In order for the/etc/profile file to take effect immediately after modification, you can use the following command:

Command: #. /etc/profile

Note:. There are spaces between the/etc/profile and the

4. Test the JDK

After installing and configuring the environment variables, the next step is to test that the JDK is installed properly.

Enter Java-version or Javac-version, if the version information is displayed, the installation is successful:

As you can see, the JDK has been installed successfully. Next, let's test a simple Hello World program.

A. Create a new Hello.java file

B. Add the following code:

Save exit.

C. Compile, run:

As can be seen from the above, the JDK compiles and runs normally.

At this point, the installation of the JDK has ended successfully.

Centos (64-bit) installation HBase detailed steps

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.