Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

Difference between yarn ui running applications and output from yarn cli


Running hdp 2.6.2 

All appl shown in the yarn ui is from 13/12 2019 (that is more than 1 month old)


yarn application -list

shows a different list of jobs. from now and back in time.

If I tries to access the log from a job from the yarn ui. It returns with the message

Failed to read the application application_1575679196937_21846.

If I try to access the same appl from the yarn cli: 

[yarn@wx2024 ~]$ yarn logs -applicationId application_1575679196937_21846
20/01/15 13:49:43 INFO client.AHSProxy: Connecting to Application History server at
20/01/15 13:49:43 INFO client.RequestHedgingRMFailoverProxyProvider: Looking for the active RM in [rm1, rm2]...
20/01/15 13:49:43 WARN client.RequestHedgingRMFailoverProxyProvider: Invocation returned exception on [rm2] : org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException: Application with id 'application_1575679196937_21846' doesn't exist in RM. Please check that the job submission was successful.
at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.getApplicationReport(
at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.getApplicationReport(
at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$
at org.apache.hadoop.ipc.RPC$
at org.apache.hadoop.ipc.Server$Handler$
at org.apache.hadoop.ipc.Server$Handler$
at Method)
at org.apache.hadoop.ipc.Server$
, so propagating back to caller.
Unable to get ApplicationState. Attempting to fetch logs directly from the filesystem.
Can not find the appOwner. Please specify the correct appOwner
Could not locate application logs for application_1575679196937_21846




Rising Star

Hi @clvi, Try adding the --appOwner <username> to the yarn logs command. However,  I think the application states are erased from the RM state store, probably due to an RM State Restore.