Your InputFormat will have the LongWritable as Key and in your
code you might be trying to read it as the Text rather than LongWritable
that causes this issue.
Some InputFormats will have predefined key value pairs like
TextInputFormat will have Object, Text as key, value. You should get to
know through the API documentation.
So make sure that you are using right key value pairs.
On Fri, Feb 1, 2013 at 10:41 PM, Anbarasan Murthy <[EMAIL PROTECTED]>wrote:
> I am getting the following Exception message when i try to output Text as
> my output key and SequenceFileOutputFormat as the output format
> java.io.IOException: wrong key class: org.apache.hadoop.io.Text is not
> class org.apache.hadoop.io.LongWritable
> Need help from hadoop community.