logo image

Commands to check Spark YARN Logs, Kill Spark appliation

Views: 64

1.) To Check spark YARN logs :- Below Command print will print out the contents of all log files from all containers of the given application.

[email protected]:~# yarn logs -applicationId <app ID>

is application ID provided by YARN to Spark Job, We can find out the by looking into spark job logs or in YARN console. By Default YARN console runs on 8088 port number.

2.) To Kill Spark Job running in YARN

To kill through command prompt

[email protected]:~# yarn application -kill <app ID>


  1. opening Spark application UI.
  2. gotojobs tab.
  3. find job among running jobs.
  4. click on kill link and confirm.

3.) To Kill Spark Job running in standalone

[email protected]:~# spark-submit --kill [submission ID] --master [spark://...] 
[email protected]:~# spark-submit --master spark://xxxx --kill application_xxx