如何杀掉当前正在执行的hadoop任务
列出当前hadoop正在执行的jobs:
[hadoop@192.168.10.11 hadoop-0.20.2-cdh3u3]$ hadoop job -list
10 jobs currently running
JobId State StartTime UserName Priority SchedulingInfo
job_201212111628_11166 1 1375083632268 dbs NORMAL NA
job_201212111628_11219 1 1375280297644 dbs NORMAL NA
job_201212111628_11512 1 1375846914268 dbs NORMAL NA
job_201212111628_11538 1 1375885079046 dbs NORMAL NA
job_201212111628_11727 1 1376489879837 dbs NORMAL NA
job_201212111628_11930 1 1377094858657 dbs NORMAL NA
job_201212111628_12094 1 1377534049419 dbs NORMAL NA
job_201212111628_12097 1 1377569500240 dbs NORMAL NA
job_201212111628_12099 1 1377569535886 dbs NORMAL NA
job_201212111628_12100 1 1377569573432 dbs NORMAL NA
杀掉job: job_201212111628_11166
[hadoop@192.168.10.11 bin]$ ./hadoop job -kill job_201212111628_11166
Killed job job_201212111628_11166
[hadoop@192.168.10.11 bin]$ hadoop job -list
9 jobs currently running
JobId State StartTime UserName Priority SchedulingInfo
job_201212111628_11219 1 1375280297644 dbs NORMAL NA
job_201212111628_11512 1 1375846914268 dbs NORMAL NA
job_201212111628_11538 1 1375885079046 dbs NORMAL NA
job_201212111628_11727 1 1376489879837 dbs NORMAL NA
job_201212111628_11930 1 1377094858657 dbs NORMAL NA
job_201212111628_12094 1 1377534049419 dbs NORMAL NA
job_201212111628_12097 1 1377569500240 dbs NORMAL NA
job_201212111628_12099 1 1377569535886 dbs NORMAL NA
job_201212111628_12100 1 1377569573432 dbs NORMAL NA