quiz-10 hadoop mapreduce.pdf - Name USC ID Quiz 10 Hadoop MapReduce(10 points 10 minutes Consider the WordCount program you have seen in class(with

quiz-10 hadoop mapreduce.pdf - Name USC ID Quiz 10 Hadoop...

This preview shows page 1 out of 1 page.

Name: ___________________________ USC ID: ______________________ INF 551 – Fall 2019 Quiz 10: Hadoop MapReduce (10 points), 10 minutes Consider the WordCount program you have seen in class (with TokenizerMapper and IntSumReducer). Assume that the Combiner is used which executes the same reduce function as the Reducer. Suppose that the program takes a directory with two input files: file1 and file2 whose contents are as follows. File1 has 3 lines while file2 has 2 lines. File1 File2 here and there here there here or there not here 1. [1 point] How many Map tasks will Hadoop create for the above input directory? 2 map tasks, 1 per file. 2. [5 points] What are the key-value pairs (please specify the content of both key and value) that each Map task will handle? What key-value pairs will it output?
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '14
  • Hadoop, key-value pairs, Hadoop¬†MapReduce, map tasks

  • 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