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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • tools
    • 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

            zxu Zhihai Xu
            zxu Zhihai Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: