1
我在一個模板配置文件中看到了這些:Hadoop推薦素數的map/reduce任務?
<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出版的書,爲什麼這些應該是素。有人有主意嗎?
謝謝。