How to Kill Running Jobs in Hadoop

The following code snippet shows how to list and kill Hadoop jobs including (MapReduce and YARN jobs).

Raymond Tang Raymond Tang 0 1612 0.72 index 5/27/2019

The following code snippet shows how to list and kill Hadoop jobs including (MapReduce and YARN jobs).

Remember to replace $jobId and $applicationId to your own job/application ID. You can also use the following command but it is deprecated: hadoop job -list hadoop job -kill

Code snippet

# MapReduce jobs
# Replace %jobId with your own job ID
mapred job -list
mapred job -kill $jobId

# YARN jobs
# Replace $applicationId with your own application ID

yarn application -list
yarn application -kill $applicationId
hadoop shell yarn

Join the Discussion

View or add your thoughts below

Comments