Listing YARN applications shows which jobs are submitted, accepted, running, finished, failed, or killed. It is the first check for scheduler pressure, missing jobs, and application IDs needed by log or kill commands.
Use state filters to keep the list focused. A default list often shows active states, while historical investigations usually need FINISHED, FAILED, or KILLED filters.
Run the command from a Hadoop client configured for the correct ResourceManager or HA nameservice. The same user may see a different cluster if the client configuration points elsewhere.
$ yarn application -list Total number of applications (application-types: [] and states: [SUBMITTED, ACCEPTED, RUNNING]):1 Application-Id Application-Name User Queue State application_1720000000000_0042 daily-etl alice analytics RUNNING
$ yarn application -list -appStates RUNNING Total number of applications (application-types: [] and states: [RUNNING]):1 Application-Id Application-Name User Queue State application_1720000000000_0042 daily-etl alice analytics RUNNING
$ yarn application -list -appTypes MAPREDUCE -appStates FINISHED Total number of applications (application-types: [MAPREDUCE] and states: [FINISHED]):1 Application-Id Application-Name User Queue State Final-State application_1720000000000_0038 QuasiMonteCarlo alice default FINISHED SUCCEEDED
$ yarn application -status application_1720000000000_0042 Application-Id : application_1720000000000_0042 Application-Name : daily-etl State : RUNNING Final-State : UNDEFINED
$ yarn logs -applicationId application_1720000000000_0042 Container: container_1720000000000_0042_01_000001 on worker01.example.net:8041 LogAggregationType: AGGREGATED
Related: How to view YARN application logs