COMPUTER FUNDAMENTALS

EMERGING TRENDS IN COMPUTING

CLOUD COMPUTING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the pseudo-code for MapReduce’s WordCount example (not shown here). Let’s now assume that you want to determine the frequency of phrases consisting of 3 words each instead of determining the frequency of single words. Which part of the pseudo-code do you need to adapt?
A
Only map()
B
Only reduce()
C
Both map() and reduce()
D
The code does not have to be changed
Explanation: 

Detailed explanation-1: -Accepted Answers: For which of the following operations is NO communication with the NameNode required? A client writing a file to HDFS.

Detailed explanation-2: -If we set the number of Reducer to 0 (by setting job. setNumreduceTasks(0)), then no reducer will execute and no aggregation will take place. In such case, we will prefer “Map-only job” in Hadoop. In Map-Only job, the map does all task with its InputSplit and the reducer do no job.

There is 1 question to complete.