hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhihai xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11035) distcp on mr1(branch-1) fails with NPE using a short relative source path.
Date Sat, 30 Aug 2014 00:59:53 GMT
zhihai xu created HADOOP-11035:
----------------------------------

             Summary: distcp on mr1(branch-1) fails with NPE using a short relative source
path.
                 Key: HADOOP-11035
                 URL: https://issues.apache.org/jira/browse/HADOOP-11035
             Project: Hadoop Common
          Issue Type: Bug
          Components: tools
            Reporter: zhihai xu
            Assignee: zhihai xu


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.
{code}
final String dst = makeRelative(root, child.getPath());
{code}

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



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message