hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <dar...@darose.net>
Subject Re: custom task cleanup even when task is killed?
Date Mon, 13 Sep 2010 18:28:12 GMT
On 09/12/2010 02:38 AM, Chase Bradford wrote:
> I have a mapper class (extended from mapreduce.Mapper), where setup
> reports to an outside resource.  I want to make sure that most of the
> time when the task fails or is killed, a specific chunk of cleanup
> code is executed.

Just like there's a "setup(Mapper.Context context)" method, there's also 
a "cleanup(Mapper.Context context)" method for just this purpose.



View raw message