Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5255

Distcp job fails with hsftp when https is enabled in insecure cluster

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0-beta
    • 2.2.0
    • None
    • None

    Description

      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

      Attachments

        1. HDFS-5255.01.patch
          5 kB
          Arpit Agarwal
        2. HDFS-5255.02.patch
          6 kB
          Arpit Agarwal
        3. HDFS-5255.04.patch
          8 kB
          Arpit Agarwal
        4. HDFS-5255.05.patch
          12 kB
          Arpit Agarwal
        5. HDFS-5255.06.patch
          13 kB
          Arpit Agarwal
        6. HDFS-5255.07.patch
          13 kB
          Arpit Agarwal
        7. HDFS-5255.08.patch
          17 kB
          Arpit Agarwal

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            arp Arpit Agarwal
            yeshavora Yesha Vora
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment