Introducing MapReduce | 73
In case of counting word frequencies, the answers were straightforward.
• Answertoquestion1: The output of the mapper is every word encountered in the input
record with a frequency count of 1.
• Answertoquestion2: Sum up the counts for every word to get a total frequency for every
word.
In reality, these same questions have to be answered to parallelize any task.
4.2.2 Technical Flow of a MapReduce Job
Technically, there are three main components in a MapReduce job and they are briey explained
as follows.
1. Driver/Controllerclass: It is a full configuration class. Generally, the following things are
maintained in a Driver class.
This is the main class in MapReduce framework that means Java’s main() ...