Hi ,
I am facing this exception when trying to run the first program on hadoop. (I am using hadoop new API on version 0.20.2).
I searched on web, it looks like most of the people faced this problem when they did not set MapperClass and ReducerClass in the configuration logic.
But I checked and it looks the code is ok . I will really appreciate if someone can help me out.
java.io.IOException: Type mismatch in key from map: expected org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:871)
Mapper class
Reducer Class
Configuration Class