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 2 Question 52 Discussion

Actual exam question for Hortonworks's Hortonworks Data Platform Certified Developer exam
Question #: 52
Topic #: 2
[All Hortonworks Data Platform Certified Developer Questions]

Analyze each scenario below and indentify which best describes the behavior of the default partitioner?

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:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel