Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> job Killing itself upon some condition


Copy link to this message
-
RE: job Killing itself upon some condition
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 [[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2012 3:15 PM
To: [EMAIL PROTECTED]
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.