hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahesh Balija <balijamahesh....@gmail.com>
Subject Re: SequenceFileOutputFormat - Wrong Key Class
Date Sun, 03 Feb 2013 10:20:01 GMT
Hi Murthy,

           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.

Mahesh Balija,

On Fri, Feb 1, 2013 at 10:41 PM, Anbarasan Murthy <anbu992003@hotmail.com>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.

View raw message