I am trying to run a map/reducer in java. Below are my files
WordCount.java
package counter;
public class
Add these 2 lines in your code :
job.setMapOutputKeyClass(Text.class);
job.setMapOutputValueClass(IntWritable.class);
You are using TextOutputFormat which emits LongWritable key and Text value by default, but you are emitting Text as key and IntWritable as value. You need to tell this to the famework.
HTH