search
HomeOperation and MaintenanceWindows Operation and MaintenanceHow to correctly deploy HBase under windows

How to correctly deploy HBase under windows

Nov 18, 2020 pm 03:54 PM
hbasewindows

How to correctly deploy HBase under windows

This article introduces the steps to deploy HBase. Deploying HBase under Windows can solve the problem of using HBase in stand-alone development.

When the project is officially launched, HBase distributed deployment on Linux can be used.

(Related recommendations: windows)

Main steps:

1. Preparation materials:

The default JDK has been installed and configured Good environment variables, jdk1.8.0_121 is used here.

1. Download HBase

Download the HBase1.2.6 installation package from the official website, download hbase-1.2.6-bin.tar.gz, and unzip it to D:\hadoop\hbase-1.2 .6.

2. Download hadoop-common-2.2.0-bin-master

hadoop-common-2.2.0-bin-master (including winutils.exe needed to develop Hadoop2.2 on the windows side ), HBase needs to be used when deploying under Windows.

Download hadoop-common-2.2.0-bin-master.zip and extract it to D:\hadoop\hadoop-common-2.2.0-bin-master.

2. Configuration:

1. Modify conf/hbase-env.cmd under HBase

Configure JDK:

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
set HBASE_MANAGES_ZK=true

2. Modify under HBase hbase-site.xml

<configuration>
	<property>  
		<name>hbase.rootdir</name>  
		<value>file:///D:/hadoop/hbase-1.2.6/tmp/hbase/root</value>  
	</property>  
	<property>  
		<name>hbase.tmp.dir</name>  
		<value>D:/hadoop/hbase-1.2.6/tmp/hbase/tmp</value>  
	</property>  
	<property>  
		<name>hbase.zookeeper.quorum</name>  
		<value>127.0.0.1</value>  
	</property>  
	<property>  
		<name>hbase.zookeeper.property.dataDir</name>  
		<value>D:/hadoop/hbase-1.2.6/tmp/hbase/zoo</value>  
	</property>  
	<property>  
		<name>hbase.cluster.distributed</name>  
		<value>false</value>  
	</property>
</configuration>

3. Configure the user variable HADOOP_HOME

Create a new environment variable HADOOP_HOME with the value D:\hadoop\hadoop-common-2.2.0-bin-master

Add after path: %HADOOP_HOME%\bin

3. Test

1. Start HBase

in D:\hadoop\hbase-1.2.6 Open the command line under \bin and enter start-hbase.cmd to start HBase.

Screenshot:

How to correctly deploy HBase under windows

2. Test Shell

After HBase is started, enter hbase shell on the command line to open the HBase shell command line .

How to correctly deploy HBase under windows

3. Open the HBase homepage, URL: http://127.0.0.1:16010/master-status

How to correctly deploy HBase under windows

After testing, HBase1.2.6 can be used, but there are problems with HBase2.0.0 following this process.

The above is the detailed content of How to correctly deploy HBase under windows. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment