hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 정현진 <hyeonjin...@gmail.com>
Subject Re: job list in yarn
Date Thu, 23 Mar 2017 03:33:32 GMT
Alexis,

If you need to kill all running jobs, you can use this bash script.

```bash

# get list of job's process IDs
JOB_LIST=$(hadoop job -list 2> /dev/null | grep job_ | awk '{print $1}')

# kill all jobs
for JOB in $JOB_LIST
do
        hadoop job -kill $JOB
        echo job (${JOB}) is killed now.
done

```


- Hyeonjin Jung

2017. 3. 18. 오후 9:43에 "Alexis Fidalgo" <alzrck@gmail.com>님이 작성:

> Hello, is there any way to configure for this list (job list) to auto
> clean or any command to clear without restart yarn?
>
> thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org
> For additional commands, e-mail: user-help@hadoop.apache.org
>
>

Mime
View raw message