org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:
Directory /opt/module/hadoop-2.7.2/data/tmp/dfs/name is in an
inconsistent state: storage directory does not exist or is not
accessible.
发生这个异常是因为启动集群的时候,hadoop根目录有data和logs文件夹,只需删掉停止所有服务器重新格式化群起服务器即可
bin/hdfs namenode -format
sbin/start-dfs.sh
sbin/start-yarn.sh
注意:NameNode和ResourceManger如果不是同一台机器,不能在NameNode上启动 YARN,应该在ResouceManager所在的机器上启动YARN。