Question: MapReduce ] Consider as input files that look as follows. List parke ice cream parke tofu parke tomatoes jeff tofu jeff broccoli jeff ice cream
MapReduce Consider as input files that look as follows.
List
parke
ice cream
parke
tofu
parke
tomatoes
jeff
tofu
jeff
broccoli
jeff
ice cream
eric
milk
Input
List
represents grocery lists for people. Assume the format of each
is keyvalue.
a Describe the difference between a Map task and a Reduce task in MapRe
duce.
Marks
b Design a MapReduce job that outputs grocery item egice cream
as key and the count of the number of people as value eg who have
that item on their list. Describe what each map and reduce does by filling
in the blanks:
Mapper Procedure: Marks
Input:
What is the input?
Output:
What is the keyvalue output
Reducer Procedure: Marks
Input:
What is the input?
Output:
What is the keyvalue output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
