That close method will execute for all the map tasks running right?? -----Original Message----- From: Jingkei Ly [mailto:[email protected]] Sent: Tuesday, July 14, 2009 10:29 AM To: [email protected] 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 On Tue, Jul 14, 2009 at 5:52 PM, akhil1988 <[email protected]> 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 > Sent from the Hadoop core-user mailing list archive at Nabble.com. > >
