-Re: kill-task syntax?
Allen Wittenauer 2011-03-23, 22:02
On Mar 23, 2011, at 2:02 PM, Keith Wiley wrote:
> hadoop job -kill-task and -fail-task don't work for me. I get this kind of error:
> Exception in thread "main" java.lang.IllegalArgumentException: TaskAttemptId string : task_201103101623_12995_r_000000 is not properly formed
> at org.apache.hadoop.mapreduce.TaskAttemptID.forName(TaskAttemptID.java:170)
> at org.apache.hadoop.mapred.TaskAttemptID.forName(TaskAttemptID.java:108)
> at org.apache.hadoop.mapred.JobClient.run(JobClient.java:1787)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.mapred.JobClient.main(JobClient.java:1956)
> How is that not a properly formed task id? I copied it straight off the job tracker? Killing a job generally works for me........although much to my dismay the job often doesn't actually die, which is why I'm not attempting to kill the underlying tasks directly.
It actually wants the attemptid, not the task id. :(
So attempt_201103101623_12995_r_000000_0 would have worked.
There should be a JIRA filed....