【发布时间】:2018-05-08 08:49:18
【问题描述】:
我尝试在pseudo-distributed 模式下安装hbase。由于这个问题,我现在不能使用 hbase。 hbase shell 中的每个代码都无法运行,并且都得到了这个错误提示:
错误:KeeperErrorCode = NoNode for /hbase/master
在我的 ubuntu 17 中,我安装了 hadoop,我确定我的 hdfs 位置与我的 hbase 匹配:
hdfs://localhost:9000
这是我在 hbase-site.xml 中的hbase-config:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
我在 core-site.xml 中的hdfs-config:
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>file:/usr/local/hadoop/tmp</value>
<description>A base for other tmp dir</description>
</property>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
我可以开始hbase,但过了一会儿,HMaster 消失了:
6737 DataNode
7749 HRegionServer
6582 NameNode
6968 SecondaryNameNode
7529 HQuorumPeer
9148 Jps
登录http://localhost:16010/master-status,可以看到日志:
无法激活:过程 WAL 依赖于在组件故障期间进行正确操作的能力,但底层文件系统不支持这样做。请检查“hbase.procedure.store.wal.use.hsync”的配置值以设置所需的稳健性级别,并确保“hbase.wal.dir”的配置值指向可以提供它的文件系统挂载。 (从 2 秒前开始)
【问题讨论】:
-
我在最近的 HBase 2.x beta 版本中遇到了类似的问题,而在稳定的 1.x 版本中一切正常。您使用的是 2.x 测试版吗?
-
是的,我猜是版本问题引起的
标签: hbase apache-zookeeper master