添加JAVA_HOME和hadoop中的一致,不知道的可以先去参考hadoop搭建那一篇。
注意:下面还有一栏被注释掉的export HBASE_MANAGES_ZK=true这一行是告诉hbase是否使用自己的ZK进行管理,我们不用管他,注释着就行。
下入如下配置
<property> <name>hbase.rootdir</name> <value>file:///opt/tmp/hbase</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/opt/hbase/tmp/zookeeper</value> </property> <property> <name>hbase.unsafe.stream.capability.enforce</name> <value>false</value> <description> Controls whether HBase will check for stream capabilities (hflush/hsync). Disable this if you intend to run on LocalFileSystem, denoted by a rootdir with the 'file://' scheme, but be mindful of the NOTE below. WARNING: Setting this to false blinds you to potential data loss and inconsistent system state in the event of process and/or node failures. If HBase is complaining of an inability to use hsync or hflush it's most likely not a false positive. </description> </property>和hadoop等一样,我把hbase也加入了环境变量中,方便自己启动
export HBASE_HOME=/usr/local/hbase-1.1.3export PATH=$PATH:HBASE_HOME/bin接着source环境变量文件, 执行
start-hbase.sh欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |