hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: while loop issue in reduce
Date Sat, 04 Dec 2010 21:42:46 GMT
Is a_el an ArrayList ?
If not, you only get the last element's value.

On Sat, Dec 4, 2010 at 9:50 AM, Ranjan Sen <ranjan_sen@hotmail.com> wrote:

>
> Hi
>
> I want to copy the values from the key and Iterator of value input in a
> reduce function. I was using a ArrayList to copy the list content into. I
> was using a
> while(values.haveNext()) {
> a_el=values.next();
> }
>
> My input is supposed to have only one key into the reduce with around 625
> value elements in the list. I do get the value elements copied but I have
> all of them with the value of the last element in them.
>
> I think the reduce process processing the list but at the termination of
> the while loop it is doing something I cannot understand.
>
> Any suggestions?
>
> Thanks a lot
>
> Ranjan

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