问题:
2015-09-12 13:04:56,954 FATALorg.apache.hadoop.hdfs.server.namenode.NameNode: Exception innamenode join
org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:Directory /home/hadoop/dfs/name is in an inconsistent state: storagedirectory does not exist or is not accessible.
atorg.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:292)
atorg.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:200)
atorg.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:787)
atorg.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:568)
atorg.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:443)
atorg.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:491)
atorg.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:684)
atorg.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:669)
atorg.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1254)
atorg.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)
解决方案:
hadoop namenode -format