Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Hortonworks Exam HDPCD Topic 1 Question 54 Discussion

Actual exam question for Hortonworks's HDPCD exam
Question #: 54
Topic #: 1
[All HDPCD Questions]

MapReduce v2 (MRv2/YARN) is designed to address which two issues?

Show Suggested Answer Hide Answer
Suggested Answer: D

The default partitioner computes a hash value for the key and assigns the partition based on this result.

The default Partitioner implementation is called HashPartitioner. It uses the hashCode() method of the key objects modulo the number of partitions total to determine which partition to send a given (key, value) pair to.

In Hadoop, the default partitioner is HashPartitioner, which hashes a record's key to determine which partition (and thus which reducer) the record belongs in.The number of partition is then equal to the number of reduce tasks for the job.


Contribute your Thoughts:

Karina
10 months ago
Got it, so it's based on the hash values. Thank you!
upvoted 0 times
...
Frederica
10 months ago
I believe Bob is correct. The default partitioner uses the hash of the key to determine which reducer to assign it to.
upvoted 0 times
...
Karina
10 months ago
Hmm, that's interesting. So you mean it's not random?
upvoted 0 times
...
Jerrod
10 months ago
I disagree with that, I believe the default partitioner uses a hash function to assign keys to reducers.
upvoted 0 times
...
Karina
11 months ago
I think the default partitioner assignment is random.
upvoted 0 times
...
Katie
12 months ago
That's correct. The default partitioner uses hashing to assign key-value pairs to reducers.
upvoted 0 times
...
Marvel
12 months ago
C) The default partitioner computes the hash of the key. Hash values between specific ranges are associated with different buckets, and each bucket is assigned to a specific reducer.
upvoted 0 times
...
Dean
12 months ago
Which best describes the behavior of the default partitioner?
upvoted 0 times
...

Save Cancel