You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2016/06/27 05:05:52 UTC

[jira] [Resolved] (MAPREDUCE-21) NegativeArraySizeException in reducer with new api

     [ https://issues.apache.org/jira/browse/MAPREDUCE-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amareshwari Sriramadasu resolved MAPREDUCE-21.
----------------------------------------------
    Resolution: Duplicate

> NegativeArraySizeException in reducer with new api
> --------------------------------------------------
>
>                 Key: MAPREDUCE-21
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-21
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>            Reporter: Amareshwari Sriramadasu
>
> I observed one of the reducers failing with NegativeArraySizeException with new api.
> The exception trace:
> java.lang.NegativeArraySizeException
> 	at org.apache.hadoop.io.BytesWritable.setCapacity(BytesWritable.java:119)
> 	at org.apache.hadoop.io.BytesWritable.setSize(BytesWritable.java:98)
> 	at org.apache.hadoop.io.BytesWritable.readFields(BytesWritable.java:153)
> 	at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:67)
> 	at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:40)
> 	at org.apache.hadoop.mapreduce.ReduceContext.nextKeyValue(ReduceContext.java:142)
> 	at org.apache.hadoop.mapreduce.ReduceContext.nextKey(ReduceContext.java:121)
> 	at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:189)
> 	at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:542)
> 	at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:409)
> 	at org.apache.hadoop.mapred.Child.main(Child.java:159)
> The corresponding line in ReduceContext is 
> {code}
> line#142    key = keyDeserializer.deserialize(key);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org