1、hadoop环境参照 hadoop3.1.1在centos6.5上的伪分布式安装 此次安装基于这个环境安装
2、使用hbase2.1.2 启动失败,报错
java.lang.IllegalStateException: The procedure WAL relies on the ability to hsync for proper operation during component failures, but the underlying filesystem does not support doing so. Please check the config value of 'hbase.procedure.store.wal.use.hsync' to set the desired level of robustness and ensure the config value of 'hbase.wal.dir' points to a FileSystem mount that can provide it.
版本修改为1.4.9后,没有报错
追加,此报错可以在hbase-site.xml中通过添加配置
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
解决
安装单机zookeeper
配置环境
修改 /home/appuser/.bashrc
export HBASE_HOME=/app/appuser/apps/hbase-1.4.9
export PATH=$HBASE_HOME/bin:$PATH
使配置生效
source /home/appuser/.bashrc
配置hbase-env.sh
export JAVA_HOME=/usr/java/jdk1.8.0_121/
<!--
如果你是使用hbase自带的zk就是true,如果使用自己的zk就是false-->
export HBASE_MANAGES_ZK=false
修改 hdfs-site.xml
<property>
<name>hbase.tmp.dir</name>
<value>/app/appuser/apps/hdata/hbasetmp</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/app/appuser/apps/hdata/hbasetmp/zk</value>
</property>
<property>
<name>hbase.master.info.port</name>
<value>60010</value>
</property>
启动hbase
sh bin/start-hbase.sh
查看web页面
http://ip:60010