hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jingkei Ly <jly.l...@gmail.com>
Subject Re: Looking for counterpart of Configure Method
Date Tue, 14 Jul 2009 17:06:01 GMT
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 <akhilanger@gmail.com>

>
> 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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message