By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .
access_time 7 months ago comment 0 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 at 7 months ago

Please log in or register to comment. account_circle Log in person_add Register
comment Comments (0)
No comments yet.
account_circle Raymond

Code snippets for various programming languages/frameworks.

open_in_new View

local_offer Tags


info License/Terms