[
https://issues.apache.org/jira/browse/MAPREDUCE-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734651#action_12734651
]
Arun C Murthy commented on MAPREDUCE-796:
-----------------------------------------
I see the problem in
org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper.run with the following
fix:
{noformat}
diff --git
src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java
src/mapred/org/apach
index 2e0d6d9..95530f9 100644
--- src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java
+++ src/mapred/org/apache/hadoop/mapreduce/lib/map/MultithreadedMapper.java
@@ -146,7 +146,7 @@ public class MultithreadedMapper<K1, V1, K2, V2>
} else if (th instanceof InterruptedException) {
throw (InterruptedException) th;
} else {
- throw (RuntimeException) th;
+ throw new RuntimeException(th);
}
}
}
{noformat}
The *else* block should probably be:
> Encountered "ClassCastException" on tasktracker while running wordcount with
> MultithreadedMapRunner
> ---------------------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-796
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-796
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: examples
> Affects Versions: 0.20.1
> Reporter: Suman Sehgal
>
> ClassCastException for OutOfMemoryError is encountered on tasktracker while
> running wordcount example with MultithreadedMapRunner.
> Stack trace :
> =========
> java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to
> java.lang.RuntimeException
> at
> org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper.run(MultithreadedMapper.java:149)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:581)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:303)
> at org.apache.hadoop.mapred.Child.main(Child.java:170)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.