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>