Windows HBase Installation

Source: Internet
Author: User
Tags zookeeper

In the previous post, I had introduced how to install Hadoop on Windows based system. Now, I'll introduce how to install HBase on Windows.

1. Preparation:

Before the installation, let's take a look at the Hadoop-hbase suppot matrix below:

You can choose the apropriate version of HBase which are supported by your Hadoop system. Because i has installed Hadoop 2.7.1 in the previous post, so I choose to install HBase 1.3.1 which are supported by H Adoop 2.7.1.

2. Download hbase 1.3.1.tar.gz from Apache official site.

3. Unzip the hbase 1.3.1.tar.gz into your local computer.

On my computer, I unzipped in folder: C:\UserDefined\BigData\hbase-1.3.1 which is the hbase root.

4. Configuration

The configuration mainly about both files which located at %hbase_home%\conf folder hbase-site.xml Hbase-env.cmd

4.1) Hbase-site.xml

<configuration>
<property>
<!--hbase Mater address-->
<name>hbase.master</name>
<value>localhost:6000</value>
</property>
<property>
<name>hbase.master.maxclockskew</name>
<value>180000</value>
</property>
<property>
<!--hbase folder in hdfs-->
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>false</value>
</property>
<property>
<!--ZK Master address-->
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<!--hbase Data folder in Zookeeper-->
<name>hbase.zookeeper.property.dataDir</name>
<value>/hbase</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>

4.2) Hbase-env.cmd

Set the Java_home path.

Note:
You can use FullPath of the JDK installation root dir. Or if you are configurate the java_home path, you can also Referen Ce the system variable.

Because I has configurate the java_home variable, so I reference the system var directly.

5. Operation

5.1) Stop Hadoop if Hadoop has been started. Command as follows:

%hadoop_home%\sbin\stop-all.cmd

Note:

%hadoop_home% referes to the root dir of your Hadoop install location.

5.2) Start Hadoop using command as follows:

%hadoop_home%\sbin\start-all.cmd

Note:

%hadoop_home% referes to the root dir of your Hadoop install location.

5.3) Start hbase using command as follows:

%hbase_home%Start-hbase.cmd

Note:

%hbase_home% referes to the root dir of your hbase install location.

5.4) Start HBase restfull Service

%hbase_home%\hbase Rest Start-p 6000

Note:

%hbase_home% referes to the root dir of your hbase install location.

5.5 Start HBase Shell

%hbase_home%\hbase Shell

Note:

%hbase_home% referes to the root dir of your hbase install location.

Windows 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.