Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11035

distcp on mr1(branch-1) fails with NPE using a short relative source path.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: tools
    • Labels:
      None

      Description

      distcp on mr1(branch-1) fails with NPE using a short relative source path.
      The failure is at DistCp.java, makeRelative return null at the following code:
      The parameters passed to makeRelative are not same format:
      root is relative path and child.getPath() is a full path.

      final String dst = makeRelative(root, child.getPath());
      

      The solution is
      change root to full path to match child.getPath().

        Attachments

        1. HADOOP-11035.000.patch
          4 kB
          zhihai xu
        2. HADOOP-11035.001.patch
          4 kB
          zhihai xu
        3. HADOOP-11035.002.patch
          4 kB
          zhihai xu

          Activity

            People

            • Assignee:
              zxu zhihai xu
              Reporter:
              zxu zhihai xu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: