Application not running message

Understanding the Application not running message from TEZ that appears in the YARN application log prevents confusion when inspecting Hive queries.

During startup, HiveServer starts sessions that are available until expires, and then the Application Masters are killed. HiveServer transparently restarts dead AMs on demand when you run another query. HiveServer tries to clean up sessions from the Tez pool during shutdown. "Application not running" message that looks something like this might appear in a stack trace log:
2020-09-10 05:55:03,456 INFO  org.apache.tez.client.TezClient: [shutdown-hook-0]: Failed to shutdown Tez Session via proxy
org.apache.tez.dag.api.SessionNotRunning: Application not running, applicationId=application_1529951949458_0032, yarnApplicationState=FINISHED, finalApplicationStatus=SUCCEEDED, 
Ignore this message. It does not indicate an issue. This message is just a trace logged when the session is closed or restarted, and the AM has timed out.