COMPUTER FUNDAMENTALS

EMERGING TRENDS IN COMPUTING

CLOUD COMPUTING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following statements are true about key/value pairs in Hadoop?
A
A map() function can emit up to a maximum number of key/value pairs (depending on the Hadoop environment).
B
A map() function can emit anything between zero and an unlimited number of key/value pairs.
C
A reduce() function can iterate over key/value pairs multiple times.
D
A call to reduce() is guaranteed to receive key/value pairs from only one key.
Explanation: 

Detailed explanation-1: -Hadoop MapReduce uses a key-value pair to process the data in an efficient manner. The MapReduce concept is actually derived from Google white papers which uses this concept. Key-value pairs are not part of the input data, but rather the input data is split in the form of key and value to be processed in the mapper.

Detailed explanation-2: -Answer: A MapReduce partitioner makes sure that all the value of a single key goes to the same reducer thus allows evenly distribution of the map output over the reducers.

There is 1 question to complete.