没想到很快HDFS就没有空间了,于是乎,eclipse调试程序的时候出现了各种奇葩的错误
下面这个还是很好理解的,出现的情况是整个HDFS剩余空间为0. OMG,剩余为0啦啊!!!!!
Mar 17, 2014 12:55:25 AM org.apache.hadoop.mapred.JobClient copyAndConfigureFiles
WARNING: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
Mar 17, 2014 12:55:25 AM org.apache.hadoop.mapreduce.lib.input.FileInputFormat listStatus
INFO: Total input paths to process : 1
Mar 17, 2014 12:55:25 AM org.apache.hadoop.util.NativeCodeLoader <clinit>
WARNING: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Mar 17, 2014 12:55:25 AM org.apache.hadoop.io.compress.snappy.LoadSnappy <clinit>
WARNING: Snappy native library not loaded
Mar 17, 2014 12:55:26 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Running job: job_201403161249_0002
Mar 17, 2014 12:55:27 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 0% reduce 0%
Mar 17, 2014 12:55:50 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 1% reduce 0%
Mar 17, 2014 12:55:52 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 4% reduce 0%
Mar 17, 2014 12:55:53 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 5% reduce 0%
Mar 17, 2014 12:55:55 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 9% reduce 0%
Mar 17, 2014 12:55:56 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 12% reduce 0%
Mar 17, 2014 12:55:58 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 15% reduce 0%
Mar 17, 2014 12:55:59 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 19% reduce 0%
Mar 17, 2014 12:56:02 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 22% reduce 0%
Mar 17, 2014 12:56:03 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 25% reduce 0%
Mar 17, 2014 12:56:06 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 32% reduce 0%
Mar 17, 2014 12:56:09 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 35% reduce 0%
Mar 17, 2014 12:56:11 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 36% reduce 0%
Mar 17, 2014 12:56:24 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 37% reduce 0%
Mar 17, 2014 12:56:26 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 38% reduce 0%
Mar 17, 2014 12:56:28 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 39% reduce 0%
Mar 17, 2014 12:56:30 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 42% reduce 0%
Mar 17, 2014 12:56:32 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 46% reduce 12%
Mar 17, 2014 12:56:33 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 50% reduce 12%
Mar 17, 2014 12:56:35 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 52% reduce 12%
Mar 17, 2014 12:56:36 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 56% reduce 12%
Mar 17, 2014 12:56:38 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 58% reduce 12%
Mar 17, 2014 12:56:39 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 62% reduce 12%
Mar 17, 2014 12:56:41 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 64% reduce 12%
Mar 17, 2014 12:56:42 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 68% reduce 12%
Mar 17, 2014 12:56:44 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 70% reduce 12%
Mar 17, 2014 12:56:45 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 72% reduce 12%
Mar 17, 2014 12:56:52 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 72% reduce 24%
Mar 17, 2014 12:56:57 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 73% reduce 24%
Mar 17, 2014 12:56:59 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 75% reduce 24%
Mar 17, 2014 12:57:00 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 76% reduce 24%
Mar 17, 2014 12:57:01 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 78% reduce 24%
Mar 17, 2014 12:57:02 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 83% reduce 24%
Mar 17, 2014 12:57:03 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 84% reduce 24%
Mar 17, 2014 12:57:04 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 85% reduce 24%
Mar 17, 2014 12:57:05 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 87% reduce 24%
Mar 17, 2014 12:57:06 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 88% reduce 24%
Mar 17, 2014 12:57:07 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 89% reduce 24%
Mar 17, 2014 12:57:08 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 89% reduce 27%
Mar 17, 2014 12:57:09 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 92% reduce 27%
Mar 17, 2014 12:57:10 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 93% reduce 27%
Mar 17, 2014 12:57:11 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 94% reduce 27%
Mar 17, 2014 12:57:17 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 95% reduce 27%
Mar 17, 2014 12:57:20 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 96% reduce 27%
Mar 17, 2014 12:57:23 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 96% reduce 30%
Mar 17, 2014 12:57:26 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 97% reduce 30%
Mar 17, 2014 12:57:29 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 98% reduce 30%
Mar 17, 2014 12:57:36 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_m_000009_0, Status : FAILED
java.io.IOException: Spill failed
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer$Buffer.write(MapTask.java:1218)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer$Buffer.write(MapTask.java:1199)
at java.io.DataOutputStream.writeByte(DataOutputStream.java:153)
at org.apache.hadoop.io.WritableUtils.writeVLong(WritableUtils.java:264)
at org.apache.hadoop.io.WritableUtils.writeVInt(WritableUtils.java:244)
at org.apache.hadoop.io.Text.write(Text.java:281)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableSerializer.serialize(WritableSerialization.java:90)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableSerializer.serialize(WritableSerialization.java:77)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1066)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:690)
at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
at org.conan.myhadoop.mr.SourceStatistic$SourceMapper.map(SourceStatistic.java:28)
at org.conan.myhadoop.mr.SourceStatistic$SourceMapper.map(SourceStatistic.java:1)
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:364)
at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
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:1190)
at org.apache.hadoop.mapred.Child.main(Child.java:249)
Caused by: org.apache.hadoop.util.DiskChecker$DiskErrorException: Could not find any valid local directory for output/spill0.out
at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:381)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:146)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:127)
at org.apache.hadoop.mapred.MapOutputFile.getSpillFileForWrite(MapOutputFile.java:121)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:1397)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.access$1800(MapTask.java:858)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer$SpillThread.run(MapTask.java:1349)
Mar 17, 2014 12:57:36 AM org.apache.hadoop.mapred.JobClient getTaskLogs
WARNING: Error reading task outputhttp://datanode2:50060/tasklog?plaintext=true&attemptid=attempt_201403161249_0002_m_000009_0&filter=stdout
Mar 17, 2014 12:57:36 AM org.apache.hadoop.mapred.JobClient getTaskLogs
WARNING: Error reading task outputhttp://datanode2:50060/tasklog?plaintext=true&attemptid=attempt_201403161249_0002_m_000009_0&filter=stderr
Mar 17, 2014 12:57:41 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_m_000009_1, Status : FAILED
java.io.IOException: Spill failed
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer$Buffer.write(MapTask.java:1218)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer$Buffer.write(MapTask.java:1199)
at java.io.DataOutputStream.writeByte(DataOutputStream.java:153)
at org.apache.hadoop.io.WritableUtils.writeVLong(WritableUtils.java:264)
at org.apache.hadoop.io.WritableUtils.writeVInt(WritableUtils.java:244)
at org.apache.hadoop.io.Text.write(Text.java:281)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableSerializer.serialize(WritableSerialization.java:90)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableSerializer.serialize(WritableSerialization.java:77)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1066)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:690)
at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
at org.conan.myhadoop.mr.SourceStatistic$SourceMapper.map(SourceStatistic.java:28)
at org.conan.myhadoop.mr.SourceStatistic$SourceMapper.map(SourceStatistic.java:1)
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:364)
at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
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:1190)
at org.apache.hadoop.mapred.Child.main(Child.java:249)
Caused by: org.apache.hadoop.util.DiskChecker$DiskErrorException: Could not find any valid local directory for output/spill0.out
at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:381)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:146)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:127)
at org.apache.hadoop.mapred.MapOutputFile.getSpillFileForWrite(MapOutputFile.java:121)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:1397)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.access$1800(MapTask.java:858)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer$SpillThread.run(MapTask.java:1349)
Mar 17, 2014 12:57:41 AM org.apache.hadoop.mapred.JobClient getTaskLogs
WARNING: Error reading task outputhttp://datanode1:50060/tasklog?plaintext=true&attemptid=attempt_201403161249_0002_m_000009_1&filter=stdout
Mar 17, 2014 12:57:41 AM org.apache.hadoop.mapred.JobClient getTaskLogs
WARNING: Error reading task outputhttp://datanode1:50060/tasklog?plaintext=true&attemptid=attempt_201403161249_0002_m_000009_1&filter=stderr
Mar 17, 2014 12:57:42 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: map 90% reduce 30%
Mar 17, 2014 12:57:48 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_m_000009_2, Status : FAILED
FSError: java.io.IOException: No space left on device
java.lang.ArithmeticException: / by zero
at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:351)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:146)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:127)
at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:111)
at org.apache.hadoop.mapred.Child.localizeTask(Child.java:341)
at org.apache.hadoop.mapred.Child.main(Child.java:220)
Mar 17, 2014 12:57:57 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_m_000011_0, Status : FAILED
java.lang.Throwable: Child Error
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271)
Caused by: java.io.IOException: Task process exit with nonzero status of -1.
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)
Mar 17, 2014 12:57:57 AM org.apache.hadoop.mapred.JobClient getTaskLogs
WARNING: Error reading task outputhttp://datanode1:50060/tasklog?plaintext=true&attemptid=attempt_201403161249_0002_m_000011_0&filter=stdout
Mar 17, 2014 12:57:57 AM org.apache.hadoop.mapred.JobClient getTaskLogs
WARNING: Error reading task outputhttp://datanode1:50060/tasklog?plaintext=true&attemptid=attempt_201403161249_0002_m_000011_0&filter=stderr
Mar 17, 2014 12:58:02 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_r_000001_0, Status : FAILED
FSError: java.io.IOException: No space left on device
Mar 17, 2014 12:58:05 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_m_000011_1, Status : FAILED
FSError: java.io.IOException: No space left on device
Mar 17, 2014 12:58:08 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Task Id : attempt_201403161249_0002_m_000011_2, Status : FAILED
FSError: java.io.IOException: No space left on device
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.JobClient monitorAndPrintJob
INFO: Job complete: job_201403161249_0002
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Counters: 24
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Job Counters
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Launched reduce tasks=1
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: SLOTS_MILLIS_MAPS=434453
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Total time spent by all reduces waiting after reserving slots (ms)=0
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Total time spent by all maps waiting after reserving slots (ms)=0
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Launched map tasks=15
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Data-local map tasks=15
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: SLOTS_MILLIS_REDUCES=113699
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Failed map tasks=1
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: FileSystemCounters
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: FILE_BYTES_READ=23657
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: HDFS_BYTES_READ=621140385
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: FILE_BYTES_WRITTEN=621920
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: File Input Format Counters
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Bytes Read=621139055
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Map-Reduce Framework
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Map output materialized bytes=24602
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Combine output records=1217
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Map input records=2645313
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Physical memory (bytes) snapshot=2132029440
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Spilled Records=2382
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Map output bytes=60967017
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: CPU time spent (ms)=108770
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Total committed heap usage (bytes)=1603051520
Mar 17, 2014 12:58:13 AM org.apache.hadoop.mapred.Counters log
INFO: Virtual memory (bytes) snapshot=9653436416
Mar 17, 2014 12:58:14 AM org.apache.hadoop.mapred.Counters log
INFO: Combine input records=2628083
Mar 17, 2014 12:58:14 AM org.apache.hadoop.mapred.Counters log
INFO: Map output records=2628083
Mar 17, 2014 12:58:14 AM org.apache.hadoop.mapred.Counters log
INFO: SPLIT_RAW_BYTES=1330
还有另外一个情况就是
“could only be replicated to 0 nodes, instead of 1”异常
这个log没有及时留下,但当时的场景是,当时HDFS上空间已经很少了,但还有一点,也许是空间不够了吧,所以报了一个这样的错误。