Task failed task_1641530057069_0002_m_000000

问题描述:

[atguigu@hadoop102 hadoop-3.1.3]$ hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.3.jar wordcount /wcinput /wcoutput

输出文件没有内容。

解决办法:

修改默认配置文件“mapred-default.xml”


  mapreduce.task.timeout
  8000000 #延长时间600000修改为8000000
  The number of milliseconds before a task will be
  terminated if it neither reads an input, writes an output, nor
  updates its status string.  A value of 0 disables the timeout.
  

你可能感兴趣的:(Hadoop,hadoop,hdfs,mapreduce)