Exit CCD-410 Cloudera Certified Developer for Apache Hadoop (CCDH)
Question 2 of 5
0% complete
Q2 Single choice

You write MapReduce job to process 100 files in HDFS. Your MapReduce algorithm uses TextInputFormat: the mapper applies a regular expression over input values and emits key-values pairs with the key consisting of the matching text, and the value containing the filename and byte offset.
Determine the difference between setting the number of reduces to one and settings the number of reducers to zero.

  • A

    There is no difference in output between the two settings.

  • B

    With zero reducers, no reducer runs and the job throws an exception. With one reducer, instances of matching patterns are stored in a single file on HDFS.

  • C

    With zero reducers, all instances of matching patterns are gathered together in one file on HDFS. With one reducer, instances of matching patterns are stored in multiple files on HDFS.

  • D

    With zero reducers, instances of matching patterns are stored in multiple files on HDFS. With one reducer, all instances of matching patterns are gathered together in one file on HDFS.