设置减少数量的以下3个选项的优先级是?换句话说,如果三个都确定了,哪一个会被考虑在内呢?Hadoop减速器数量配置选项优先级
选项1:
setNumReduceTasks(2) within the application code
选项2:
-D mapreduce.job.reduces=2 as command line argument
选项3:
through $HADOOP_CONF_DIR/mapred-site.xml file
<property>
<name>mapreduce.job.reduces</name>
<value>2</value>
</property>