namenode无法启动Encountered exception loading fsimage; storage directory does not exist or is not accessible.
2016-03-15 10:17:40,660 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Encountered exception loading fsimage org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /usr/local/Softwares/hadoop-2.6.4/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible. at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:314) at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:202) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1022) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:741) at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:538) at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:597) at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:764) at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:748) at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1441) at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1507)
修改了很多配置文件代码后,namenode无法启动,报了如上错误。
解决方案: 1.stop hadoop所有的服务;
2.重新格式化namenode即可: hadoop根目录下:./bin/fs namenode -format
hadoop配置挺麻烦的,新手(比如说我)总会出现各种奇葩问题,之前把物理机上的配置复制到虚拟机中就报错resourcemanager无法启动,后来把配置文件都删了重新敲了一遍,就好了,至今无解。还待慢慢研究。
文章来自:http://www.cnblogs.com/hello577/p/5278407.html