Complete the code to specify the input format class in a MapReduce job configuration.
job.setInputFormatClass([1]);The input format class defines how input files are split and read. TextInputFormat is commonly used for text files.
Complete the code to set the number of reduce tasks in a MapReduce job.
job.setNumReduceTasks([1]);Setting the number of reduce tasks to 1 means the job will have one reducer. Zero means no reduce phase.
Fix the error in the code to correctly set the output key class for a MapReduce job.
job.setOutputKeyClass([1]);The output key class defines the data type of the output keys. Text.class is commonly used for string keys.
Fill both blanks to set the output key class and output value class in a MapReduce job.
job.setOutputKeyClass([1]); job.setOutputValueClass([2]);
The output key class is typically Text.class for strings (e.g., words), and output value class IntWritable.class for integers (e.g., counts) in jobs like word count.
Fill all three blanks to configure map output key class, value class, and combiner class in a MapReduce job.
job.setMapOutputKeyClass([1]); job.setMapOutputValueClass([2]); job.setCombinerClass([3]);
Map output key Text.class, value IntWritable.class for intermediate data, combiner Reducer.class for local aggregation on map nodes.