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

NPE thrown when invalid FSImage filename given for "hdfs oiv_legacy" cmd

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: tools
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      NPE thrown when invalid filename is given as argument for "hdfs oiv_legacy" command

      ./hdfs oiv_legacy -i /home/hadoop/hadoop/hadoop-3.0.0/dfs/name/current/fsimage_00000000000000042 -o fsimage.txt 
      Exception in thread "main" java.lang.NullPointerException
              at org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer.go(OfflineImageViewer.java:140)
              at org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer.main(OfflineImageViewer.java:260)
      

        Attachments

        1. HDFS-8111.patch
          1 kB
          Surendra Singh Lilhore

          Activity

            People

            • Assignee:
              surendrasingh Surendra Singh Lilhore
              Reporter:
              archanat Archana T
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: