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

lohit giri commented on HDFS-2236:
----------------------------------

Attaching the patch for this resolution.

I was getting below exception while runnning hadoop distcp -p -update 
hftp://source-hdfs:50070/mypath hdfs://target-cluster:8020/newpath

Copy failed: java.io.IOException: Server returned HTTP response code: 500 for 
URL: http://:50075/getFileChecksum?filename=
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at 
org.apache.hadoop.hdfs.HftpFileSystem$ChecksumParser.getFileChecksum(HftpFileSystem.java:439)
at 
org.apache.hadoop.hdfs.HftpFileSystem$ChecksumParser.access$300(HftpFileSystem.java:417)
at 
org.apache.hadoop.hdfs.HftpFileSystem.getFileChecksum(HftpFileSystem.java:456)
at org.apache.hadoop.tools.DistCp.sameFile(DistCp.java:1529)
at org.apache.hadoop.tools.DistCp.setup(DistCp.java:1382)
at org.apache.hadoop.tools.DistCp.copy(DistCp.java:790)
at org.apache.hadoop.tools.DistCp.run(DistCp.java:1028)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83)
at org.apache.hadoop.tools.DistCp.main(DistCp.java:1055) 

Attaching the patch for fixing filename parameter issue with DfsServlet and 
FileChecksumServlets works.
                
> DfsServlet and FileChecksumServlets still use the filename parameter 
> ---------------------------------------------------------------------
>
>                 Key: HDFS-2236
>                 URL: https://issues.apache.org/jira/browse/HDFS-2236
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Eli Collins
>            Priority: Minor
>
> DfsServlet and FileChecksumServlets still use the filename parameter, weren't 
> modified in HDFS-1109 to pass the file name as part of the URI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to