搭建完集群之后,在hbase shell中查看表,出现error: KeeperErrorCode = NoNode for /hbase/master错误
排除解决:
1.查看jps里面的进程,hbase的HMaster和hadoop的datanode挂掉了
2.查看hbase的log,信息如下:org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /hbase/.tmp/hbase.version could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node(s) are excluded in this operation.
之间信息省略。。。。。。。
ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: HMaster Aborted
3.通过hbase上述日志,可以定位到hadoop的DataNode挂掉导致(因为我是单机部署,就一个)
4.查看hadoop的DataNode日志,信息如下:WARN org.apache.hadoop.hdfs.server.common.Storage: Failed to add storage directory [DISK]file:/root/bigdata/hadoop-3.1.2/dfs_datanode_data_dir
java.io.IOException: Incompatible clusterIDs in /root/bigdata/hadoop-3.1.2/dfs_datanode_d