how to limit the number of mappers
问题 I explicitly specify the number of mappers within my java program using conf.setNumMapTasks() , but when the job ends, the counter shows that the number of launched map tasks were more than the specified value. How to limit the number of mapper to the specified value? 回答1: According to the Hadoop API Jonf.setNumMapTasks is just a hint to the Hadoop runtime. The total number of map tasks equals to the number of blocks in the input data to be processed. Although, it should be possible to