YARN Command Line
YARN is used to request resources for workloads to run on the cluster, start them, as well as manage them once started.
| Command | Operation |
|---|---|
yarn application -list |
Lists your applications( by default currently running ones) |
yarn application -kill <appId> |
Aborts an application |
yarn jar <applicationJar> [mainClass] [application arguments] |
Submits a java application |
yarn logs -applicationId <applicationId> |
print the logs of an application(from all containers, use option -am -1 to print only the ApplicationMaster's logs) |
The application Id to use can be retrieved in YARN's WebUI as well as in the output of yarn jar or spark-submit while submitting the application or with yarn application -list.
For more details on yarn commands and their options, use yarn application or yarn logs.