Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16437

ReverseXML processor doesn't accept XML files without the SnapshotDiffSection.

    XMLWordPrintableJSON

Details

    Description

      In a cluster environment without snapshot, if you want to convert back to fsimage through the generated xml, an error will be reported.

      //代码占位符
      
      [test@test001 ~]$ hdfs oiv -p ReverseXML -i fsimage_0000000000000257220.xml -o fsimage_0000000000000257220
      OfflineImageReconstructor failed: FSImage XML ended prematurely, without including section(s) SnapshotDiffSection
      java.io.IOException: FSImage XML ended prematurely, without including section(s) SnapshotDiffSection
              at org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor.processXml(OfflineImageReconstructor.java:1765)
              at org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor.run(OfflineImageReconstructor.java:1842)
              at org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB.run(OfflineImageViewerPB.java:211)
              at org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB.main(OfflineImageViewerPB.java:149)
      22/01/25 15:56:52 INFO util.ExitUtil: Exiting with status 1: ExitException 

      Attachments

        Issue Links

          Activity

            People

              it_singer yanbin.zhang
              it_singer yanbin.zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 5h 40m
                  5h 40m