我在模板配置文件中看到了这些:
<property>
<name>mapred.map.tasks</name>
<value>2</value>
<description>The default number of map tasks per job. Typically set
to a prime several times greater than number of available hosts.
Ignored when mapred.job.tracker is "local".
</description>
</property>
...
<property>
<name>mapred.reduce.tasks</name>
<value>1</value>
<description>The default number of reduce tasks per job. Typically set
to a prime close to the number of available hosts. Ignored when
mapred.job.tracker is "local".
</description>
</property>
我无法找到任何其他参考资料,无论是在线还是在Hadoop O'Reilly的书中,至于为什么这些应该是 prime 。有人有什么想法吗?
感谢。