EMERGING TRENDS IN SOFTWARE ENGINEERING
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 map() function can emit up to a maximum number of key/value pairs (depending on the Hadoop environment).
|
|
A map() function can emit anything between zero and an unlimited number of key/value pairs.
|
|
A reduce() function can iterate over key/value pairs multiple times.
|
|
A call to reduce() is guaranteed to receive key/value pairs from only one key.
|
Explanation:
Detailed explanation-1: -Answer : A Q 26-Which one of the following statements is true regarding <key, value> pairs of a MapReduce job? A-A key class must implement Writable.
Detailed explanation-2: -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-3: -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.