DistCp throw NPE if src is root
-------------------------------
Key: HADOOP-5673
URL: https://issues.apache.org/jira/browse/HADOOP-5673
Project: Hadoop Core
Issue Type: Bug
Components: tools/distcp
Reporter: Tsz Wo (Nicholas), SZE
Assignee: Tsz Wo (Nicholas), SZE
{noformat}
bash-3.2$ ./bin/hadoop distcp / .
09/04/14 14:01:11 INFO tools.DistCp: srcPaths=[/]
09/04/14 14:01:11 INFO tools.DistCp: destPath=
With failures, global counters are inaccurate; consider running with -i
Copy failed: java.lang.NullPointerException
at org.apache.hadoop.tools.DistCp.makeRelative(DistCp.java:901)
at org.apache.hadoop.tools.DistCp.setup(DistCp.java:1059)
...
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.