Re: Kill Task Programmatically

2011-08-04 Thread Harsh J
gt; Aleksandr > > --- On Wed, 8/3/11, Adam Shook wrote: > > From: Adam Shook > Subject: Kill Task Programmatically > To: "common-user@hadoop.apache.org" > Date: Wednesday, August 3, 2011, 3:33 PM > > Is there any way I can programmatically kill or fail a tas

RE: Kill Task Programmatically

2011-08-03 Thread Devaraj K
/mapred/Ru nningJob.html#killTask(org.apache.hadoop.mapred.TaskAttemptID, boolean) Devaraj K -Original Message- From: Aleksandr Elbakyan [mailto:ramal...@yahoo.com] Sent: Thursday, August 04, 2011 5:10 AM To: common-user@hadoop.apache.org Subject: Re: Kill Task Programmatically Hello

Re: Kill Task Programmatically

2011-08-03 Thread Aleksandr Elbakyan
Hello, You can just throw run time exception. In that case it will fail :) Regards, Aleksandr --- On Wed, 8/3/11, Adam Shook wrote: From: Adam Shook Subject: Kill Task Programmatically To: "common-user@hadoop.apache.org" Date: Wednesday, August 3, 2011, 3:33 PM Is there any

Kill Task Programmatically

2011-08-03 Thread Adam Shook
Is there any way I can programmatically kill or fail a task, preferably from inside a Mapper or Reducer? At any time during a map or reduce task, I have a use case where I know it won't succeed based solely on the machine it is running on. It is rare, but I would prefer to kill the task and ha