windows hbase installation

2021-04-30 09:28

阅读:357

标签:apach   5.5   def   follow   sbin   ast   log   install   clock   

In the previous post,  I have introduced how to install hadoop on windows based system. Now, I will 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 is supported by your hadoop system. Because I have installed hadoop 2.7.1 in the previous post, so I choose to install hbase 1.3.1 which is supported by hadoop 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 two files which located at %HBASE_HOME%\conf folder hbase-site.xml   hbase-env.cmd   

 

4.1) hbase-site.xml

技术分享




hbase.master
localhost:6000


hbase.master.maxclockskew
180000



hbase.rootdir
hdfs://localhost:9000/hbase


hbase.cluster.distributed
false



hbase.zookeeper.quorum
localhost



hbase.zookeeper.property.dataDir
/hbase


dfs.replication
1

 4.2) hbase-env.cmd

set the JAVA_HOME path.

Note:
you can use fullpath of the jdk installation root dir. or if you have configurate the JAVA_HOME path, you can also reference the system variable.

 because I have 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

标签:apach   5.5   def   follow   sbin   ast   log   install   clock   

原文地址:http://www.cnblogs.com/lenmom/p/7804763.html


评论


亲,登录后才可以留言!