You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Runping Qi (JIRA)" <ji...@apache.org> on 2007/11/06 22:49:50 UTC
[jira] Created: (HADOOP-2164) Reducer sort failed due to wrong key
class
Reducer sort failed due to wrong key class
------------------------------------------
Key: HADOOP-2164
URL: https://issues.apache.org/jira/browse/HADOOP-2164
Project: Hadoop
Issue Type: Bug
Components: mapred
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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2164) Reducer sort failed due to wrong
key class
Posted by "Runping Qi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540774 ]
Runping Qi commented on HADOOP-2164:
------------------------------------
My input data is in SequenceFile.
Only one map outputt segment file had the problem.
I found that the machine that produces that map output segment file was in bad shape ---
its root partition (/) is 100% full. That might be the cause of the problem.
> Reducer sort failed due to wrong key class
> ------------------------------------------
>
> Key: HADOOP-2164
> URL: https://issues.apache.org/jira/browse/HADOOP-2164
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2164) Reducer sort failed due to wrong
key class
Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559623#action_12559623 ]
Joydeep Sen Sarma commented on HADOOP-2164:
-------------------------------------------
all hell breaks loose when the root partition gets full. mysterious exceptions appear in all shapes and sizes.
use the dfs.du.reserved option and the patch that makes it work ..
> Reducer sort failed due to wrong key class
> ------------------------------------------
>
> Key: HADOOP-2164
> URL: https://issues.apache.org/jira/browse/HADOOP-2164
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2164) Reducer sort failed due to wrong
key class
Posted by "Enis Soztutar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540684 ]
Enis Soztutar commented on HADOOP-2164:
---------------------------------------
I have seem similar errors when the input is a mapfile but i am using SequenceFileInputFormat. Could you please check your program if this is indeed the case.
> Reducer sort failed due to wrong key class
> ------------------------------------------
>
> Key: HADOOP-2164
> URL: https://issues.apache.org/jira/browse/HADOOP-2164
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2164) Reducer sort failed due to wrong
key class
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540707 ]
Devaraj Das commented on HADOOP-2164:
-------------------------------------
Runping, is it the case that only one attempt for the reducer failed? Did another attempt for the task succeed?
> Reducer sort failed due to wrong key class
> ------------------------------------------
>
> Key: HADOOP-2164
> URL: https://issues.apache.org/jira/browse/HADOOP-2164
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2164) Reducer sort failed due to wrong
key class
Posted by "Runping Qi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540772 ]
Runping Qi commented on HADOOP-2164:
------------------------------------
All attempts failed. The job failed eventually.
> Reducer sort failed due to wrong key class
> ------------------------------------------
>
> Key: HADOOP-2164
> URL: https://issues.apache.org/jira/browse/HADOOP-2164
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> 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.
-
You can reply to this email to add a comment to the issue online.