hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley" <omal...@apache.org>
Subject Re: Very strange Java Collection behavior in Hadoop
Date Tue, 20 Mar 2012 05:58:01 GMT
On Mon, Mar 19, 2012 at 10:52 PM, madhu phatak <phatak.dev@gmail.com> wrote:

> Hi All,
>  I am using Hadoop 0.20.2 . I am observing a Strange behavior of Java
> Collection's . I have following code in reducer


That is my fault. *sigh* The input to the reducer is reused. Replace:

list.add(value);

with:

list.add(new Text(value));

and the problem will go away.

-- Owen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message