List and kill jobs in Shell / Hadoop

visibility 352 access_time 3 years ago languageEnglish

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
info Last modified by Raymond 3 years ago copyright This page is subject to Site terms.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

timeline Stats
Page index 0.32
More from Kontext
Install Hadoop 3.3.0 on Windows 10 using WSL
visibility 15,788
thumb_up 25
access_time 2 years ago
Install Hadoop 3.3.0 on Windows 10 using WSL
Create Partitioned Hive Table
visibility 55
thumb_up 0
access_time 5 months ago
List Hadoop running jobs in Shell / Hadoop
visibility 194
thumb_up 0
access_time 3 years ago