After hbase was released for a while, I found that the command run time reported NoNode for /hbase/master exception, and the same is true for other commands such as create, etc. The detailed error information is as follows:
hbase(main):005:0> status
ERROR: KeeperErrorCode = NoNode for /hbase/master
For usage try 'help "status"'
Took 8.1764 seconds
For such errors, you can check them in the following ways:
- jps to see if the roles of zookeeper and hbase are started normally
- The ps command checks whether the relevant process is normal.
ps -ef | grep hbase
andps -ef | grep zookeeper
- Check whether there is a corresponding file under zookeeper/hbase. Check whether there is a corresponding file under zookeeper/hbase.
According to the above method, it is usually necessary to restart the service if the service does not start normally:
#Stop service
bin/
#1 minute interval
#Start the service
bin/
#After fix
hbase(main):001:0> status
1 active master, 0 backup masters, 1 servers, 0 dead, 2.0000 average load
Took 1.1624 seconds