Reputation: 11
I have set 3 reducer in driver class in MR.
it means three partitions will be created..
but mapper is emiting only two unique key say male and female.
In this case, how times Reducer and reduce functions will run?
Upvotes: 1
Views: 151
Reputation: 13927
If you set 3 reducers they will all run. However, if you only have two keys at most two of the reducers will actually receive data to process.
Upvotes: 1
Reputation: 21563
Your question is a bit vague, but I could come up with two explanations of what may happen:
Upvotes: 1