hadoop运行reduce阶段总是报错:
Task attempt_201301151634_193666_r_000010_0 failed to report status for 603 seconds这是由于执行合并索引操作时间较长,所以超过了600秒的时间限制,把这个值改高点就不会报错了。
在程序里可以设置:
job.getConfiguration().setInt("mapred.task.timeout", 6000000);
附上hadoop配置文件里的默认设置:
<property>
<name>mapred.task.timeout</name>
<value>600000</value>
<description>The number of milliseconds before a task will be terminated if it neither reads an input, writes an output, nor updates its status string.
</description>
</property>
本文讨论了Hadoop任务执行中Reduce阶段遇到的超时错误问题,具体为一个TaskAttempt因合并索引操作时间过长而超过默认时间限制。通过调整配置参数,将mapred.task.timeout设置为更长的值,可以避免此类错误。同时,提供了Hadoop配置文件中关于此参数的默认设置,帮助开发者理解并解决相关问题。
88

被折叠的 条评论
为什么被折叠?



