Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-3689 Upgrade Mpack services stack to Bigtop 3.2
  3. BIGTOP-3701

Remove deprecated Hadoop fs-image file after uninstalling HDFS-namenode

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.2.0
    • 3.2.0
    • build, hadoop
    • None

    Description

      Usecase scenario:

      When deploying HDFS, Yarn and MapReduce services by Ambari-Mpack from Bigtop RPMs,

      firstly I installed Hadoop-2.10 from Bigtop-1.5 repo, then I uninstalled it and re-installed Hadoop 3.2 from Bigtop-3.1.0 repo.

      It would fail to format namenode:

      ERROR namenode.NameNode (NameNode.java:main(1795)) - Failed to start namenode.
      java.io.IOException:
      File system image contains an old layout version -63.
      An upgrade to version -65 is required.
              at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:280)
              at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1135)
              at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:750)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:658)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:734)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:977)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:950)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1723)
              at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1790)
      2022-05-24 15:26:35,431 INFO  util.ExitUtil (ExitUtil.java:terminate(210)) - Exiting with status 1: java.io.IOException:
      File system image contains an old layout version -63.
      An upgrade to version -65 is required.
      
      

      The user have to restart NameNode with the "-rollingUpgrade started" option if a rolling upgrade is already started; or restart NameNode with the "-upgrade" option to start a new upgrade. It would confuse some new Hadoop users.

       

      It's better to remove deprecated Hadoop fs-image file after uninstalling HDFS-namenode in RPM spec. 

       

       

       

       

      Attachments

        Activity

          People

            yqGu Yuqi Gu
            yqGu Yuqi Gu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h