[
https://issues.apache.org/jira/browse/MAPREDUCE-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235576#comment-13235576
]
Paritosh Ranjan commented on MAPREDUCE-120:
-------------------------------------------
I am getting a similar/same problem :
wrong key class: org.apache.hadoop.io.Text is not class
org.apache.hadoop.io.LongWritable.
But I want to write Text and that is what I have specified as output key class.
Is there any solution to this problem?
> Reducer sort failed due to wrong key class
> ------------------------------------------
>
> Key: MAPREDUCE-120
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-120
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Runping Qi
>
> One of my job's reducers failed due to the following exception:
> java.io.IOException: wrong key class: class org.apache.hadoop.io.LongWritable
> is not class org.apache.hadoop.io.Text
> at
> org.apache.hadoop.io.SequenceFile$Sorter$SegmentDescriptor.nextRawKey(SequenceFile.java:2733)
> at
> org.apache.hadoop.io.SequenceFile$Sorter$MergeQueue.merge(SequenceFile.java:2542)
> at
> org.apache.hadoop.io.SequenceFile$Sorter.merge(SequenceFile.java:2326)
> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:291)
> at
> org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1760)
> I checked the segment files to be merged on the node running the reducer,
> and founded that one of the map output file did record
> org.apache.hadoop.io.LongWritable as its key class!
> The question is how that happened? My job conf specified Text as the map
> output key class, and other map output files had
> the correct key class!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira