I don't know what you mean by that.

The guarantee is that each mapper object will have close called and that map
will never be called after close is called.

On Tue, Jul 14, 2009 at 10:47 AM, Ramakishore Yelamanchilli <
kyela...@cisco.com> wrote:

> That close method will execute for all the map tasks running right??
>
> -----Original Message-----
> From: Jingkei Ly [mailto:jly.l...@googlemail.com]
> Sent: Tuesday, July 14, 2009 10:29 AM
> To: common-user@hadoop.apache.org
> Subject: Re: Looking for counterpart of Configure Method
>
> Aaron answered this question: Mapper implements Closeable, so you should
> override #close() in your Mapper, and it will be called when the map task
> finishes:
>
> http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/mapred/Mapp
> er.html<http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/mapred/Mapp%0Aer.html>
>
> On Tue, Jul 14, 2009 at 5:52 PM, akhil1988 <akhilan...@gmail.com> wrote:
>
> >
> > Does anyone knows the answer to my question or is there any alternative
> to
> > do
> > this?
> >
> > Thanks,
> > Akhil
> >
> >
> >
> > akhil1988 wrote:
> > >
> > > Hi All,
> > >
> > > Just like method configure in Mapper interface, I am looking for its
> > > counterpart that will perform the closing operation for a Map task. For
> > > example, in method configure I start an external daemon which is used
> > > throughout my map task and when the map task completes, I want to close
> > > that daemon. Is there any method that gets called at the end of the Map
> > > task and  can be overwritten just like configure class.
> > >
> > > Thanks,
> > > Akhil
> > >
> >
> > --
> > View this message in context:
> >
>
> http://www.nabble.com/Looking-for-counterpart-of-Configure-Method-tp24466923
> p24483501.html<http://www.nabble.com/Looking-for-counterpart-of-Configure-Method-tp24466923%0Ap24483501.html>
> > Sent from the Hadoop core-user mailing list archive at Nabble.com.
> >
> >
>
>


-- 
Ted Dunning, CTO
DeepDyve

111 West Evelyn Ave. Ste. 202
Sunnyvale, CA 94086
http://www.deepdyve.com
858-414-0013 (m)
408-773-0220 (fax)

Reply via email to