How to Kill Running Jobs in Hadoop

Raymond Raymond event 2019-11-18 visibility 1,460
more_vert

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
More from Kontext
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts