我使用hadoop api制作简单的map-redue程序。但是,当Hadoop机器执行mapredue作业时,我遇到了一些错误消息。如何解决?
PS。我使用hadoop 2.6.0
{ “类型”: “MAP_ATTEMPT_FAILED”, “事件”:{ “org.apache.hadoop.mapreduce.jobhistory.TaskAttemptUnsuccessfulCompletion”:{ “taskid的”: “task_1438070830862_0003_m_000002”, “任务类型”: “图”,“attemptId “:” attempt_1438070830862_0003_m_000002_0" , “finishTime”:1438760025042, “主机名”: “Hadoop的NODE7”, “端口”:56135, “rackname”: “/默认架”, “状态”: “失败”, “错误” :“错误:java.io.IOException:无法初始化任何输出收集器\ n \ tat org.apache.hadoop.mapred.MapTask.createSortingCollector(MapTask.java:412)\ n \ tat org.apache.hadoop.mapred。 MapTask.access $ 100(MapTask.java:81)\ n \ tat org.apache.hadoop.mapred.MapTask $ NewOutputCollector。(MapTask.java:695)\ n \ tat org.apache.hadoop.mapred.MapTask.runNewMapper( MapTask.java:767)\n\tat org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)\ n \ tat org.apache.hadoop.mapred.YarnChild $ 2.run(YarnChild.java:163 )\ n \ tat java.security.AccessController.doPrivileged(Native Method)\ n \ tat javax.security.auth.Subject.doAs(Subject.java:422)\ n \ tat org.apache.hadoop.security.Use rGroupInformation.doAs(UserGroupInformation.java:1628)\ n \ tat org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)\ n“,”counter“:{”org.apache.hadoop.mapreduce。 jobhistory.JhCounters“:{”name“:”COUNTERS“,”groups“:[{”name“:”org.apache.hadoop.mapreduce.TaskCounter“,”displayName“:”Map-Reduce Framework“,”count“ :[{“name”:“SPILLED_RECORDS”,“displayName”:“Spilled Records”,“value”:0},{“name”:“FAILED_SHUFFLE”,“displayName”:“失败的随机播放”,“值”:0 },{“name”:“MERGED_MAP_OUTPUTS”,“displayName”:“Merged Map outputs”,“value”:0},{“name”:“CPU_MILLISECONDS”,“displayName”:“CPU花费的时间(ms)”, “value”:0},{“name”:“PHYSICAL_MEMORY_BYTES”,“displayName”:“物理内存(字节)快照”,“值”:0},{“name”:“VIRTUAL_MEMORY_BYTES”,“displayName”:“虚拟内存(字节)快照“,”值“:0}]}]}},”clockSplits“:[104143,11,11,11,11,11,10,11,11,11,11,11], “cpuUsages”:[0,0,0,0,0,0,0,0,0,0,0,0], “vMemKbytes”:[0,0,0,0,0,0,0,0 ,0,0,0,0], “physMemKbytes”:[0,0,0,0,0,0,0,0,0,0,0,0]}}}