Gurus!
Can anybody answer: where defined parameter numPartitions in Partitioner class(value of this paramen)?
Gurus!
Can anybody answer: where defined parameter numPartitions in Partitioner class(value of this paramen)?
It's the number of reducers defined for your Map Reduce job
Do you mean that? numPartition in partition class. I just used search there.
* @param numPartitions the total number of partitions. (as integer)
* [...] The total number of partitions
* is the same as the number of reduce tasks for the job.
In the Driver class you will mention the no of reducers required for the job. That count is called numPartion count. Like:
job.setNumReduceTasks(4);