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 Keith Wiley <kw...@keithwiley.com> on 2011/03/23 22:02:00 UTC
kill-task syntax?
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.
Thanks.
________________________________________________________________________________
Keith Wiley kwiley@keithwiley.com keithwiley.com music.keithwiley.com
"You can scratch an itch, but you can't itch a scratch. Furthermore, an itch can
itch but a scratch can't scratch. Finally, a scratch can itch, but an itch can't
scratch. All together this implies: He scratched the itch from the scratch that
itched but would never itch the scratch from the itch that scratched."
-- Keith Wiley
________________________________________________________________________________
Re: kill-task syntax?
Posted by Keith Wiley <kw...@keithwiley.com>.
On Mar 23, 2011, at 2:02 PM, Keith Wiley wrote:
> 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.
Horribly confusing typo: not -> now
________________________________________________________________________________
Keith Wiley kwiley@keithwiley.com keithwiley.com music.keithwiley.com
"Yet mark his perfect self-contentment, and hence learn his lesson, that to be
self-contented is to be vile and ignorant, and that to aspire is better than to
be blindly and impotently happy."
-- Edwin A. Abbott, Flatland
________________________________________________________________________________
Re: kill-task syntax?
Posted by Allen Wittenauer <aw...@linkedin.com>.
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....