HADOOP FQA(常见问题记录)

Q1: hadoop ha standby namenode 无法启动

查看启动日志
ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /data/hadoop/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible.
原因:/data/hadoop/dfs/name目录不知怎么没有了
解决:关闭集群,从master节点同步,重启集群

scp -r /data/hadoop/dfs/name root@hdc-data5:/data/hadoop/dfs/

Q2: 待续

你可能感兴趣的:(HADOOP FQA(常见问题记录))