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.
From: tousif [[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2012 3:15 PM
To: [EMAIL PROTECTED]
Subject: job Killing itself upon some condition
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.