hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Kimball <aa...@cloudera.com>
Subject Re: Closable Map
Date Fri, 18 Jun 2010 21:59:56 GMT
The Mapper class has a close() method. You can put arbitrary code in there.

You can even save a reference to the OutputCollector during the map()
method, and then emit "final" key, value pairs after the entire InputSplit
has been processed.

- Aaron

On Thu, Jun 17, 2010 at 5:22 AM, Mohamed Riadh Trad
<Mohamed.trad@inria.fr>wrote:

> I think that there is a closable() class on Java, what about hadoop pipes?
> Le 17 juin 2010 à 14:21, Mohamed Riadh Trad a écrit :
>
> > Hi all,
> >
> > Is it possible to put instructions to be executed after all the record
> reader have been proceeded within a map?
> >
> > (on close() function??)
> >
> > Regards.
>
>

Mime
View raw message