Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Big Data Hadoop & Spark by (6.5k points)
I have a lot of Hadoop jobs that are stuck in accepted state because I messed up my yarn settings, any way to kill specific jobs?

1 Answer

0 votes
by (11.3k points)
edited by

To kill a specific job once submitted, use the:

Command for Hadoop Versions >= 2.3.0 :

yarn application -kill $ApplicationId

Command for Hadoop Version < 2.3.0:

hadoop job -kill $jobId

If you don't know what application ID or Job ID is associated with the job you need to get rid of, you can use the following commands to list them:

yarn application -list

hadoop job -list

Replace the id or number field with the value you want to eliminate and it will get removed from the running/submitted/accepted job categories. These are some of the finer complexities in Hadoop that you can resolve after taking basic hadoop tutorials

Kickstart your career by enrolling in this Big Data Hadoop certification training offered by Intellipaat.

Browse Categories

...