While learning about MapReduce, I encountered this question:
A given Mapreduce program has the Map phase generate 100 key-value pairs with 10 unique keys.
How many Reduce tasks can this program have when at least one Reduce task will certainly be assigned no keys when a hash partitioner is used (select all answers that are correct)?
- [ ] A. 3
- [ ] B. 11
- [ ] C. 50
- [ ] D. 101
The answers are B, C, D.
Since the unique keys' number is 10. We must have at least 10 reduce task. And at least one reduce task has null key.
I am not able to understand how these answers where arrived at. Please help me in this.