Re: Output pair in Mapper.cleanup method
Thanks Eric. On Tue, Apr 27, 2010 at 6:19 PM, Eric Sammer wrote: > 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 > 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 >
Re: Output pair in Mapper.cleanup method
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 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
Output pair in Mapper.cleanup method
Hello, Is it possible to output in Mapper.cleanup method since the Mapper.context object is still available there? Thanks, Farhan