Home >Operation and Maintenance >Windows Operation and Maintenance >How to correctly deploy HBase under windows

How to correctly deploy HBase under windows

王林
王林forward
2020-11-18 15:54:144040browse

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.net. If there is any infringement, please contact admin@php.cn delete