最近有安装了一次hadoop集群,NameNode启动失败,查看日志,找到以下原因:
遇到的异常:
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /tmp/hadoop-javoft/dfs/name is in an inconsistent state: storage di rectory does not exist or is not accessible.
原因:storage directory does not exist or is not accessible
在core-site.xml文件中配置路径这里修改成自己的安装路径
hadoop.tmp.dir /opt/software/hadoop-2.7.6/data