win7下安装hbase
1.下载hbase-1.2.0.tar.gz
2.解压
3.设置conf下hbase-env.cmd中的JAVA_HOME set JAVA_HOME=D:\Java\jdk1.6.0_10
4.安装zookeeper
解压,
创建data目录
修改配置文件zoo_sample.cfg -->zoo.cfg
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=E:\\hadoop\\zookeeper-3.3.6\\data
dataLogDir=E:\\hadoop\\zookeeper-3.3.6\\data
# the port at which the clients will connect
clientPort=2181
启动zookeeper
E:\hadoop\hadoop-2.2.0>cd E:\hadoop\zookeeper-3.3.6\bin
E:\hadoop\zookeeper-3.3.6\bin>zkServer
4.设置conf下hbase-site.xml中的路径
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///E:/setup/appdata/hbase052805/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/appdata/hbase052805/zookeeper</value>
</property>
</configuration>
5.start-hbase.cmd 启动
转载于:https://my.oschina.net/goudingcheng/blog/625113