Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - Very strange Java Collection behavior in Hadoop


Copy link to this message
-
Re: Very strange Java Collection behavior in Hadoop
Owen O'Malley 2012-03-20, 05:58
On Mon, Mar 19, 2012 at 10:52 PM, madhu phatak <[EMAIL PROTECTED]> 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