Aaron answered this question: Mapper implements Closeable, so you should
implement/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/Mapper.html

2009/7/14 akhil1988 <[email protected]>

>
> 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-tp24466923p24483501.html
> Sent from the Hadoop core-user mailing list archive at Nabble.com.
>
>

Reply via email to