You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by tousif <to...@gmail.com> on 2012/05/10 11:45:57 UTC

job Killing itself upon some condition

Hi,

i have scheduled a map reduce job and i want this map reduce job to kill 
itself upon some condition. overall it should fail.  Here I'm not using  
run method of tool runner.

Re: job Killing itself upon some condition

Posted by tousif <to...@gmail.com>.
On Thursday 10 May 2012 04:25 PM, Devaraj k wrote:
> Hi Tousif,
>
>       You can kill the Running Job using the killJob() client API.
>
> If you want to kill the job itself, you can get the job id using task attempt id from map() or reduce() functions, and you can invoke the killJob() API based on your condition.
>
>
> Thanks
> Devaraj
>
> ________________________________________
> From: tousif [tousif.pasha@gmail.com]
> Sent: Thursday, May 10, 2012 3:15 PM
> To: common-user@hadoop.apache.org
> Subject: job Killing itself upon some condition
>
> Hi,
>
> i have scheduled a map reduce job and i want this map reduce job to kill
> itself upon some condition. overall it should fail.  Here I'm not using
> run method of tool runner.
Thank you very much.

RE: job Killing itself upon some condition

Posted by Devaraj k <de...@huawei.com>.
Hi Tousif,

     You can kill the Running Job using the killJob() client API. 

If you want to kill the job itself, you can get the job id using task attempt id from map() or reduce() functions, and you can invoke the killJob() API based on your condition.    


Thanks
Devaraj

________________________________________
From: tousif [tousif.pasha@gmail.com]
Sent: Thursday, May 10, 2012 3:15 PM
To: common-user@hadoop.apache.org
Subject: job Killing itself upon some condition

Hi,

i have scheduled a map reduce job and i want this map reduce job to kill
itself upon some condition. overall it should fail.  Here I'm not using
run method of tool runner.