java.io.IOException: Server returned HTTP response code: 500 for URL: http://mymachine.com:myport/streamFile?filename=/myhome/dir/string1+string2/myjobtrackermachine.com-joblog.tar.gz&ugi=myid,mygroup

Apache's JIRA Issue Tracker | Viraj Bhat | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Copying folders containing + & ! characters between hdfs (using hftp) does not work in distcp For example: Copying folder "string1+string2" at "namenode.address.com", hftp port myport to "/myotherhome/folder" on "myothermachine" does not work myothermachine prompt>>> hadoop --config ~/mycluster/ distcp "hftp://namenode.address.com:myport/myhome/dir/string1+string2" /myotherhome/folder/ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Error results for hadoop job1: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 08/07/16 00:27:39 INFO tools.DistCp: srcPaths=[hftp://namenode.address.com:myport/myhome/dir/string1+string2] 08/07/16 00:27:39 INFO tools.DistCp: destPath=/myotherhome/folder/ 08/07/16 00:27:41 INFO tools.DistCp: srcCount=2 08/07/16 00:27:42 INFO mapred.JobClient: Running job: job1 08/07/16 00:27:43 INFO mapred.JobClient: map 0% reduce 0% 08/07/16 00:27:58 INFO mapred.JobClient: Task Id : attempt_1_m_000000_0, Status : FAILED java.io.IOException: Copied: 0 Skipped: 0 Failed: 1 at org.apache.hadoop.tools.DistCp$CopyFilesMapper.close(DistCp.java:538) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) 08/07/16 00:28:14 INFO mapred.JobClient: Task Id : attempt_1_m_000000_1, Status : FAILED java.io.IOException: Copied: 0 Skipped: 0 Failed: 1 at org.apache.hadoop.tools.DistCp$CopyFilesMapper.close(DistCp.java:538) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) 08/07/16 00:28:28 INFO mapred.JobClient: Task Id : attempt_1_m_000000_2, Status : FAILED java.io.IOException: Copied: 0 Skipped: 0 Failed: 1 at org.apache.hadoop.tools.DistCp$CopyFilesMapper.close(DistCp.java:538) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) With failures, global counters are inaccurate; consider running with -i Copy failed: java.io.IOException: Job failed! at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1053) at org.apache.hadoop.tools.DistCp.copy(DistCp.java:615) at org.apache.hadoop.tools.DistCp.run(DistCp.java:764) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at org.apache.hadoop.tools.DistCp.main(DistCp.java:784) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Error log for the map task which failed -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- INFO org.apache.hadoop.tools.DistCp: FAIL string1+string2/myjobtrackermachine.com-joblog.tar.gz : java.io.IOException: Server returned HTTP response code: 500 for URL: http://mymachine.com:myport/streamFile?filename=/myhome/dir/string1+string2/myjobtrackermachine.com-joblog.tar.gz&ugi=myid,mygroup at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241) at org.apache.hadoop.dfs.HftpFileSystem.open(HftpFileSystem.java:117) at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:371) at org.apache.hadoop.tools.DistCp$CopyFilesMapper.copy(DistCp.java:377) at org.apache.hadoop.tools.DistCp$CopyFilesMapper.map(DistCp.java:504) at org.apache.hadoop.tools.DistCp$CopyFilesMapper.map(DistCp.java:279) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Apache's JIRA Issue Tracker | 9 years ago | Viraj Bhat
    org.apache.hadoop.tools.DistCp: FAIL string1+string2/myjobtrackermachine.com-joblog.tar.gz : java.io.IOException: Server returned HTTP response code: 500 for URL: http://mymachine.com:myport/streamFile?filename=/myhome/dir/string1+string2/myjobtrackermachine.com-joblog.tar.gz&ugi=myid,mygroup
  2. 0

    Copying folders containing + & ! characters between hdfs (using hftp) does not work in distcp For example: Copying folder "string1+string2" at "namenode.address.com", hftp port myport to "/myotherhome/folder" on "myothermachine" does not work myothermachine prompt>>> hadoop --config ~/mycluster/ distcp "hftp://namenode.address.com:myport/myhome/dir/string1+string2" /myotherhome/folder/ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Error results for hadoop job1: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 08/07/16 00:27:39 INFO tools.DistCp: srcPaths=[hftp://namenode.address.com:myport/myhome/dir/string1+string2] 08/07/16 00:27:39 INFO tools.DistCp: destPath=/myotherhome/folder/ 08/07/16 00:27:41 INFO tools.DistCp: srcCount=2 08/07/16 00:27:42 INFO mapred.JobClient: Running job: job1 08/07/16 00:27:43 INFO mapred.JobClient: map 0% reduce 0% 08/07/16 00:27:58 INFO mapred.JobClient: Task Id : attempt_1_m_000000_0, Status : FAILED java.io.IOException: Copied: 0 Skipped: 0 Failed: 1 at org.apache.hadoop.tools.DistCp$CopyFilesMapper.close(DistCp.java:538) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) 08/07/16 00:28:14 INFO mapred.JobClient: Task Id : attempt_1_m_000000_1, Status : FAILED java.io.IOException: Copied: 0 Skipped: 0 Failed: 1 at org.apache.hadoop.tools.DistCp$CopyFilesMapper.close(DistCp.java:538) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) 08/07/16 00:28:28 INFO mapred.JobClient: Task Id : attempt_1_m_000000_2, Status : FAILED java.io.IOException: Copied: 0 Skipped: 0 Failed: 1 at org.apache.hadoop.tools.DistCp$CopyFilesMapper.close(DistCp.java:538) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) With failures, global counters are inaccurate; consider running with -i Copy failed: java.io.IOException: Job failed! at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1053) at org.apache.hadoop.tools.DistCp.copy(DistCp.java:615) at org.apache.hadoop.tools.DistCp.run(DistCp.java:764) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at org.apache.hadoop.tools.DistCp.main(DistCp.java:784) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Error log for the map task which failed -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- INFO org.apache.hadoop.tools.DistCp: FAIL string1+string2/myjobtrackermachine.com-joblog.tar.gz : java.io.IOException: Server returned HTTP response code: 500 for URL: http://mymachine.com:myport/streamFile?filename=/myhome/dir/string1+string2/myjobtrackermachine.com-joblog.tar.gz&ugi=myid,mygroup at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241) at org.apache.hadoop.dfs.HftpFileSystem.open(HftpFileSystem.java:117) at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:371) at org.apache.hadoop.tools.DistCp$CopyFilesMapper.copy(DistCp.java:377) at org.apache.hadoop.tools.DistCp$CopyFilesMapper.map(DistCp.java:504) at org.apache.hadoop.tools.DistCp$CopyFilesMapper.map(DistCp.java:279) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:226) at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Apache's JIRA Issue Tracker | 9 years ago | Viraj Bhat
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://mymachine.com:myport/streamFile?filename=/myhome/dir/string1+string2/myjobtrackermachine.com-joblog.tar.gz&ugi=myid,mygroup
  3. 0

    Distcp failure - Server returned HTTP response code: 500

    Google Groups | 6 years ago | sonia gehlot
    java.io.IOException: *Server returned HTTP response code: 500 for URL*: http://c13-hadoop1-wkr-r10-n4.cnet.com:50075/streamFile?filename=/user/dwadmin/live/data/warehouse/facts/page_events/day=2011-05-17/_logs/history/c13-hadoop1-nn-r0-n1_1291919715221_job_201012091035_41977_dwadmin_CopyFactsToHive%253A+page_events+day%253D2011-05-17&ugi=sgehlot,user
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Copying data between 2 different hadoop clusters

    Stack Overflow | 2 years ago | Rio
    org.apache.hadoop.tools.DistCp: FAIL utc_hour=22/000012_0 : java.io.IOException: HTTP_OK expected, received 500 at org.apache.hadoop.hdfs.HftpFileSystem$RangeHeaderUrlOpener.connect(HftpFileSystem.java:376) at org.apache.hadoop.hdfs.ByteRangeInputStream.openInputStream(ByteRangeInputStream.java:119) at org.apache.hadoop.hdfs.ByteRangeInputStream.getInputStream(ByteRangeInputStream.java:103)
  6. 0

    hadoop distcp exception can't rename tmp file

    Stack Overflow | 1 year ago | JavaUser
    org.apache.hadoop.tools.DistCp: FAIL distcptest1/account.xlsx : java.io.IOException: Fail to rename tmp file (=webhdfs://10.10.200.221:50070/user/admin/testdir/_distcp_tmp_g79i9w/distcptest1/account.xlsx) to destination file (=webhdfs://10.10.200.221:50070/user/admin/testdir/distcptest1/account.xlsx)

  1. tyson925 4 times, last 1 month ago
  2. rp 1 times, last 2 months ago
  3. jedcua 2 times, last 6 months ago
  4. thiago.santos 2 times, last 7 months ago
  5. kkandda 4 times, last 8 months ago
2 more registered users
40 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Server returned HTTP response code: 500 for URL: http://mymachine.com:myport/streamFile?filename=/myhome/dir/string1+string2/myjobtrackermachine.com-joblog.tar.gz&ugi=myid,mygroup

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    HttpURLConnection.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)
    1 frame
  3. org.apache.hadoop
    HftpFileSystem.open
    1. org.apache.hadoop.dfs.HftpFileSystem.open(HftpFileSystem.java:117)
    1 frame
  4. Hadoop
    DistCp$CopyFilesMapper.map
    1. org.apache.hadoop.fs.FileSystem.open(FileSystem.java:371)
    2. org.apache.hadoop.tools.DistCp$CopyFilesMapper.copy(DistCp.java:377)
    3. org.apache.hadoop.tools.DistCp$CopyFilesMapper.map(DistCp.java:504)
    4. org.apache.hadoop.tools.DistCp$CopyFilesMapper.map(DistCp.java:279)
    4 frames
  5. Hadoop
    TaskTracker$Child.main
    1. org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
    2. org.apache.hadoop.mapred.MapTask.run(MapTask.java:226)
    3. org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2208)
    3 frames