hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Sammer <esam...@cloudera.com>
Subject Re: Output pair in Mapper.cleanup method
Date Tue, 27 Apr 2010 23:19:50 GMT
Yes. It's a common pattern to buffer some amount of data in the map()
method, flushing every N records and then to flush any remaining
records in the cleanup() method.

On Tue, Apr 27, 2010 at 6:57 PM, Farhan Husain
<farhan.husain@csebuet.org> wrote:
> Hello,
>
> Is it possible to output in Mapper.cleanup method since the Mapper.context
> object is still available there?
>
> Thanks,
> Farhan
>



-- 
Eric Sammer
phone: +1-917-287-2675
twitter: esammer
data: www.cloudera.com

Mime
View raw message