Cloudera
CCD-333 · Question #58
What is the behavior of the default partitioner?
The correct answer is D. The defaultpartitionercomputes the hash of the key and divides that value modulo the number. See the full explanation below for the reasoning.
Question
What is the behavior of the default partitioner?
Options
- AThe defaultpartitionerassigns key value pairs to reducers based on an internal random number
- BThedefaultpartitionerimplements a round robin strategy, shuffling the key value pairs to each
- CThe defaultpartitionercomputes the hash of the key. Hash values between specific ranges are
- DThe defaultpartitionercomputes the hash of the key and divides that value modulo the number
- EThe default partitioner computes the hash of the value and takes the mod of that value with the
How the community answered
(25 responses)- B4% (1)
- C4% (1)
- D84% (21)
- E8% (2)
Community Discussion
No community discussion yet for this question.