Your Map()
method is not able to override Mapper
's map()
method due to your use of a capital M in place of a lower case m.
As such, the default identity map method is being used, which results in the same key and value pair used as input also being used as output. Due to your mapper having specified extends Mapper<LongWritable,Text,Text,IntWritable>
, your attempted output of LongWritable, Text
instead of Text, IntWritable
is causing the exception.
Changing your Map()
method to map()
and adding the @Override
annotation should do the trick - if you're using an IDE I'd highly suggest using it's built in method overriding functionality to avoid errors like this.