[ 
https://issues.apache.org/jira/browse/HDFS-9584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066913#comment-15066913
 ] 

Xiaoyu Yao commented on HDFS-9584:
----------------------------------

Thanks [~surendrasingh] for working on this. Patch LGTM. 
+1 pending Jenkins.

> NPE in distcp when ssl configuration file does not exist in class path.
> -----------------------------------------------------------------------
>
>                 Key: HDFS-9584
>                 URL: https://issues.apache.org/jira/browse/HDFS-9584
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: distcp
>    Affects Versions: 2.7.1
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>         Attachments: HDFS-9584.patch
>
>
> {noformat}./hadoop distcp -mapredSslConf ssl-distcp.xml 
> hftp://x.x.x.x:25003/history hdfs://x.x.x.X:25008/history{noformat}
> if {{ssl-distcp.xml}} file not exist in class path, distcp will throw 
> NullPointerException.
> {code}
> java.lang.NullPointerException
>         at org.apache.hadoop.tools.DistCp.setupSSLConfig(DistCp.java:266)
>         at org.apache.hadoop.tools.DistCp.createJob(DistCp.java:250)
>         at org.apache.hadoop.tools.DistCp.createAndSubmitJob(DistCp.java:175)
>         at org.apache.hadoop.tools.DistCp.execute(DistCp.java:154)
>         at org.apache.hadoop.tools.DistCp.run(DistCp.java:127)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at org.apache.hadoop.tools.DistCp.main(DistCp.java:431)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to