windows hbase installation

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

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

时间: 2024-10-17 15:17:16

windows hbase installation的相关文章

Recover Grub after Windows 7 installation

安装Windows 7 和 Debian 7 双系统.装了一个另一个启动找不到.先装Debian 7,然后装Windows 7,Debian的Grub被覆盖.这里是我恢复的操作,可以成功,记录下来,以免下次遇到,又要找好半天. 1. 制作LiveUSB系统 到 http://www.pendrivelinux.com/tag/live-linux-usb-creator/ 或者 http://www.linuxliveusb.com/ 找一个下载,照着安装即可. 2. 在BIOS中设置为U盘启动

使用Phoenix将SQL代码移植至HBase

1.前言 HBase是云计算环境下最重要的NOSQL数据库,提供了基于Hadoop的数据存储.索引.查询,其最大的优点就是可以通过硬件的扩展从而几乎无限的扩展其存储和检索能力.但是HBase与传统的基于SQL语言的关系数据库无论从理念还是使用方式上都相去甚远,以至于要将基于SQL的项目移植到HBase时往往需要重写整个项目. 为了解决这个问题,很多开源项目提供了HBase的类SQL中间件,意即提供一种在HBase上使用的类SQL语言,使得程序员能够像使用关系数据库一样使用HBase,Apache

Git在Windows环境下配置Diff以及Merge工具---DiffMerge

参考出处:http://coding4streetcred.com/blog/post/Configure-DiffMerge-for-Your-Git-DiffTool主要转自:http://blog.csdn.net/u010232305/article/details/51767887 1.下载DiffMerge http://sourcegear.com/diffmerge/downloads.php,楼主选择的是 Windows Installer (64bit),安装直接下一步,这一

phoenix 3.1 + hbase 0.94.21 的安装和使用

Apache Phoenix 是 HBase 的 SQL 驱动.Phoenix 使得 HBase 支持通过 JDBC 的方式进行访问,并将你的 SQL 查询转成 HBase 的扫描和相应的动作. 兼容性: Phoenix 2.x - HBase 0.94.x Phoenix 3.x - HBase 0.94.x Phoenix 4.x - HBase 0.98.1+ 1:hbase 0.94.21 的安装 参考http://blog.csdn.net/wind520/article/detail

windows 精简/封装/部署

给一个精简过的Windows7安装net35,提示自己到『打开或关闭Windows功能』里打开,然而发现并没有,只有一个ie9的功能.搜索尝试各种办法,显然都不行.用dism部署功能的工具,挂载一个完整版的win7旗舰版上去,将挂载的镜像的功能添加到在线系统里.一切都是瞎搞,显然就没有成功. 于是便想了解一下,这些人是如何定制出这种系统的. ------------------------------------------------------------------------------

hbase官方文档(转)

Apache HBase™ 参考指南  HBase 官方文档中文版 Copyright © 2012 Apache Software Foundation.保留所有权利. Apache Hadoop, Hadoop, MapReduce, HDFS, Zookeeper, HBase 及 HBase项目 logo 是Apache Software Foundation的商标. Revision History Revision 0.95-SNAPSHOT 2012-12-03T13:38 中文版

通过Sqoop实现Mysql / Oracle 与HDFS / Hbase互导数据

通过Sqoop实现Mysql / Oracle 与HDFS / Hbase互导数据\ 下文将重点说明通过Sqoop实现Mysql与HDFS互导数据,Mysql与Hbase,Oracle与Hbase的互导最后给出命令.一.Mysql与HDFS互导数据环境:宿主机器操作系统为Win7,Mysql安装在宿主机上,宿主机地址为192.168.66.963台虚拟机操作系统为Ubuntu-12.04.1-32位三台虚拟机已成功安装hadoop,并实现免密钥互访,配hosts为:192.168.66.91 m

recover Windows 7 boot partition overwritten by Linux Mint boot loader

My Notebook installed with dual boot OS: Linux Mint 16 and Windows 7 During Linux Mint 17 overwritting version 16, I selected the windows boot partition as the mint boot loader device by mistake, so windows 7 failed to start after the installation. t

Hosting Web API in Windows service

Running your api as Windows services can have multiple advantages, especially when working on bigger projects. This allows for multiple (services to run in isolation and gives fine grained control over your system components. ASP.NET Web API ships wi