如何杀掉当前正在执行的hadoop任务
答案:2 悬赏:80 手机版
解决时间 2021-03-07 11:38
- 提问者网友:几叶到寒
- 2021-03-07 04:20
如何杀掉当前正在执行的hadoop任务
最佳答案
- 五星知识达人网友:怀裏藏嬌
- 2021-03-07 05:34
列出当前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 j... job_201212111628_11166
[hadoop@192:
[hadoop@192.168.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.20.168.10.11 hadoop-0./.10.11 bin]$ 列出当前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 j... job_201212111628_11166
[hadoop@192:
[hadoop@192.168.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.20.168.10.11 hadoop-0./.10.11 bin]$ 列出当前hadoop正在执行的jobs
全部回答
- 1楼网友:拜訪者
- 2021-03-07 06:46
yarn application -list 查看yarn上的任务列表,然后找到你要kill的任务执行下面命令yarn application -kill application_1437456051228_1725
希望能帮助到你。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯