[ https://issues.apache.org/jira/browse/HDFS-5255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arpit Agarwal updated HDFS-5255: -------------------------------- Summary: Distcp job fails with hsftp when https is enabled in insecure cluster (was: Distcp job fails with hsftp when https is enabled) > Distcp job fails with hsftp when https is enabled in insecure cluster > --------------------------------------------------------------------- > > Key: HDFS-5255 > URL: https://issues.apache.org/jira/browse/HDFS-5255 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.1.0-beta > Reporter: Yesha Vora > Assignee: Arpit Agarwal > Attachments: HDFS-5255.01.patch, HDFS-5255.02.patch, > HDFS-5255.04.patch, HDFS-5255.05.patch, HDFS-5255.06.patch, > HDFS-5255.07.patch, HDFS-5255.08.patch > > > Run Distcp job using hsftp when ssl is enabled. The job fails with > "java.net.SocketException: Unexpected end of file from server" Error > Running: hadoop distcp hsftp://localhost:50070/f1 hdfs://localhost:19000/f5 > All the tasks fails with below error. > 13/09/23 15:52:38 INFO mapreduce.Job: Task Id : > attempt_1379976241507_0004_m_000000_0, Status : FAILED > Error: java.io.IOException: File copy failed: hsftp://localhost:50070/f1 --> > hdfs://localhost:19000/f5 > at > org.apache.hadoop.tools.mapred.CopyMapper.copyFileWithRetry(CopyMapper.java:262) > at org.apache.hadoop.tools.mapred.CopyMapper.map(CopyMapper.java:229) > at org.apache.hadoop.tools.mapred.CopyMapper.map(CopyMapper.java:45) > at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340) > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:171) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1499) > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:166) > Caused by: java.io.IOException: Couldn't run retriable-command: Copying > hsftp://127.0.0.1:50070/f1 to hdfs://localhost:19000/f5 > at > org.apache.hadoop.tools.util.RetriableCommand.execute(RetriableCommand.java:101) > at > org.apache.hadoop.tools.mapred.CopyMapper.copyFileWithRetry(CopyMapper.java:258) > ... 10 more > Caused by: > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand$CopyReadException: > java.io.IOException: HTTP_OK expected, received 500 > at > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.readBytes(RetriableFileCopyCommand.java:233) > at > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.copyBytes(RetriableFileCopyCommand.java:198) > at > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.copyToTmpFile(RetriableFileCopyCommand.java:134) > at > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.doCopy(RetriableFileCopyCommand.java:101) > at > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.doExecute(RetriableFileCopyCommand.java:83) > at > org.apache.hadoop.tools.util.RetriableCommand.execute(RetriableCommand.java:87) > ... 11 more > Caused by: java.io.IOException: HTTP_OK expected, received 500 > at > org.apache.hadoop.hdfs.HftpFileSystem$RangeHeaderUrlOpener.connect(HftpFileSystem.java:383) > at > org.apache.hadoop.hdfs.ByteRangeInputStream.openInputStream(ByteRangeInputStream.java:119) > at > org.apache.hadoop.hdfs.ByteRangeInputStream.getInputStream(ByteRangeInputStream.java:103) > at > org.apache.hadoop.hdfs.ByteRangeInputStream.read(ByteRangeInputStream.java:187) > at java.io.DataInputStream.read(DataInputStream.java:149) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.FilterInputStream.read(FilterInputStream.java:107) > at > org.apache.hadoop.tools.util.ThrottledInputStream.read(ThrottledInputStream.java:75) > at > org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.readBytes(RetriableFileCopyCommand.java:230) > ... 16 more -- This message was sent by Atlassian JIRA (v6.1#6144)