就我而言,我收到了这个“ERROR: KeeperErrorCode = NoNode for /hbase/master
“ 因为HMaster进程没有运行。
检查与jps
命令。
hdusr@hdp-master-1:$ jps
27504 Main
32755 DataNode
23316 HQuorumPeer
27957 Jps
646 SecondaryNameNode
27097 HMaster
23609 HRegionServer
1562 Master
1722 Worker
911 ResourceManager
32559 NameNode
1167 NodeManager
如果你没有看到HMaster进程如上面的列表所示,这就是原因ERROR: KeeperErrorCode = NoNode.
在 hbase shell 中。
In $HBASE_HOME/logs
目录检查hbase-***-master.log
对于特定的错误。
就我而言,有两个原因,
First :
WARN [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out
我通过在 hbase-site.xml 中将“localhost”替换为“我的机器的主机名”来解决这个问题。由此answer
Second :
ERROR [master/spark-hdp-master-1:16000:becomeActiveMaster] master.HMaster: Failed to become active masterorg.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled. Available:[TOKEN]
这是因为hbase-site.xml中的hdfs端口与hadoop的core-site.xml中的不同。