首先在hbase 在window下面编译成功
我编译的是 hbase-1.1.5 版本,具体编译问题,可以查看我的前一文章。
当编译成功后,修改 hbase-1.1.5/conf/hbase-site.xml 中的为
<property>
<name>hbase.rootdir</name>
<value>D:/tmp/hbase/root</value>
</property>
<property>
<name>hbase.defaults.for.version.skip</name>
<value>true</value>
</property>
然后运行 HMaster 类的main方法,在运行中会出现其它类找不到的问题,
要把对应的源码目录引进去,因为在build过程中,会生成其它的java类。
如下图
其它问题类似,就可以在本机运行起hbase master了