I tried to install hbase in pseudo-distributed mode. Now I cannot use hbase now. Every code in the hbase shell cannot run and all of them get this error tip:
ERROR: KeeperErrorCode = NoNode for /hbase/master
In my ubuntu 17 I installed hadoop ,i'm sure that my hdfs location match my hbase:
hdfs://localhost:9000
And this is my hbase-config in hbase-site.xml:
<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>
</configuration>
My hdfs-config in core-site.xml :
<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>
</configuration>
I can start hbase ,but after a while, HMaster gone :
6737 DataNode
7749 HRegionServer
6582 NameNode
6968 SecondaryNameNode
7529 HQuorumPeer
9148 Jps
Log onhttp://localhost:16010/master-status,could see the log:
Failed to become active: 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. (since 2sec ago)