java.io.IOException: Failed to load an FSImage file!

imooc.com | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    hadoop集群启动遇到的问题及解决方案_慕课手记

    imooc.com | 6 months ago
    java.io.IOException: Failed to load an FSImage file!
  2. 0

    Cannot start HDFS NameNode: Exception in namenode join - Grokbase

    grokbase.com | 1 year ago
    java.io.IOException: Cannot lock storage /space1/dfs/nn. The directory is already locked at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.lock(Storage.java:634) at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.analyzeStorage(Storage.java:457) at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:292) at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:207) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:728) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:521) at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:403) at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:445)

    Root Cause Analysis

    1. java.io.IOException

      Failed to load an FSImage file!

      at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage()
    2. Apache Hadoop HDFS
      NameNode.<init>
      1. org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:674)
      2. org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:281)
      3. org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1058)
      4. org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:762)
      5. org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:582)
      6. org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:641)
      7. org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:808)
      7 frames