@@ -0,0 +1,732 @@
+package com.cloudwick.hadoop.statuscode;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.hadoop.io.IntWritable;%0Aimport org.apache.hadoop.io.Text;%0Aimport org.apache.hadoop.mapreduce.Reducer;%0Aimport org.apache.hadoop.mapreduce.Reducer.Context;%0A%0A/*%0A * Created by Darshan S Mahendrakar%0A * Date: 04/16/2015%0A * Email: darshan.sm@cloudwick.com%0A */%0Apublic class StatusCountReducer extends%0A%09%09Reducer%3CText, IntWritable, Text, IntWritable%3E %7B%0A%09private IntWritable count = new IntWritable();%0A%0A%09public void reduce(Text key, Iterable%3CIntWritable%3E values, Context context)%0A%09%09%09throws IOException, InterruptedException %7B%0A%0A%09%09int sum = 0;%0A%09%09for (IntWritable val : values) %7B%0A%09%09%09sum += val.get();%0A%09%09%7D%0A%09%09count.set(sum);%0A%09%09context.write(key, count);%0A%0A%09%7D%0A%7D%0A

Create StatusCountReducer.java