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: WritableComparable question
Date Mon, 19 Jul 2010 21:42:42 GMT

On Jul 19, 2010, at 2:15 PM, Raymond Jennings III wrote:

> The only way I could fix this was to re-initialize my vectors in the  
> "public
> void readFields(DataInput in)" method.  This does not seem like I  
> should have to
> do this or do I ???

Yes, readFields has to clear the data structures. MapReduce reuses  
objects in the loops.

-- Owen

Mime
View raw message