It's still better to use a combiner!
On 2/9/08 4:37 PM, "Jeff Eastman" <[EMAIL PROTECTED]> wrote: > Well, I tried saving the OutputCollectors in an instance variable and > writing to them during close and it seems to work. > > Jeff > > -----Original Message----- > From: Jeff Eastman [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 09, 2008 4:21 PM > To: [email protected] > Subject: RE: Best Practice? > > Thanks Aaron, I missed that one. Now I have my configuration information > in my mapper. In the mapper, I'm computing cluster centroids by reading > all the input points and assigning them to clusters. I don't actually > store the points in the mapper, just the evolving centroids. > > I'm trying to wait until close() to output the cluster centroids to the > reducer, but the OutputCollector is not available. Is there a way to do > this, or do I need to backtrack? > > Jeff > >
