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.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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.002.patch
          4 kB
          Zhihai Xu
        2. HADOOP-11035.001.patch
          4 kB
          Zhihai Xu
        3. HADOOP-11035.000.patch
          4 kB
          Zhihai Xu

          Activity

            People

            • Assignee:
              zxu Zhihai Xu
              Reporter:
              zxu Zhihai Xu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment