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
Hi Owen O'Malley,
 Thank you for that Instant reply. It's working now. Can you explain me
what you mean by "input to reducer is reused" in little detail?

On Tue, Mar 20, 2012 at 11:28 AM, Owen O'Malley <[EMAIL PROTECTED]> wrote:

> 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
>

--
https://github.com/zinnia-phatak-dev/Nectar