quiz8-mapreduce-afternoon-solution.pdf - Name USC ID INF 551 Fall 2018(Afternoon Quiz 8 MapReduce(10 points 10 minutes Consider the WordCount example

quiz8-mapreduce-afternoon-solution.pdf - Name USC ID INF...

This preview shows page 1 out of 1 page.

Name: ___________________________ USC ID: ______________________ INF 551 Fall 2018 (Afternoon) Quiz 8: MapReduce (10 points), 10 minutes Consider the WordCount example seen in class. Assume that input directory has 2 small files whose contents are shown below. Suppose that NO combiner is used (combiner is not yet covered in class). File1 File2 dog and cat this cat cat likes dog this cat and that dog 1.[2 points] How many map tasks will be created? 2. [4 points] Show the input and output of each call to the map function for each map task. 1. Input: (0:’dog and cat’) Output: (‘dog’:1), (‘and’:1),(‘cat’:1) 2. Input: (12:’this cat’) Output: (‘this’:1),(‘cat’:1) 3. Input: (0:’cat likes dog’) Output: (‘cat’:1),(‘likes’:1),(‘dog’:1)
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes