Reducer receives (key, values) pairs and aggregate values to a desired format, then write produced (key, value) pairs back into HDFS. E.g. Input: (term, [1, 1, 1, 1]) Output: (term, 4) Reducer Class Prototype: Reducer<Text, IntWritable, Text, IntWrit…