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

NPE while running Mover if the given path is for a file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: balancer & mover
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Thanks to Prabushankar Chinnasamy for reporting this issue!

      Currently in the new migration tool Mover, we allow users to specify a list of paths for migration. Then in Mover#processNamespace we directly call getFileInfo to retrieve the status of the given path. If the given path is a file, the returned HdfsFileStatus does not contain block location information, this can trigger an NPE.

        Attachments

        1. HDFS-7167.000.patch
          6 kB
          Jing Zhao

          Activity

            People

            • Assignee:
              jingzhao Jing Zhao
              Reporter:
              prabushankar.c Prabushankar Chinnasamy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: