QI, Jiale created YARN-12043:
--------------------------------
Summary: [Federation] Router should get completed applications
from the Application History Servers of the SubClusters
Key: YARN-12043
URL: https://issues.apache.org/jira/browse/YARN-12043
Project: Hadoop YARN
Issue Type: Improvement
Reporter: QI, Jiale
Once the RM removed a completed application, no RM knows it any more and the
Router answers that it does not exist (see YARN-AAAAA). Asked directly, the RM
web UI and YarnClient fall back to the Application History Server, but with
SubClusters in different places (e.g. data centers) each one usually has its
own history server, while a client of the Router is configured with one at
most, and the Router web proxy only knows its own.
Proposal:
- Let the Router ask the history servers for the applications that no RM knows:
the one of the home SubCluster first if the StateStore still has it, then the
others. They are configured on the Router per SubCluster with
yarn.router.application-history.address.<subClusterId> and
yarn.router.application-history.webapp.address.<subClusterId>. Without them,
the client RPC and REST interfaces use the Router's own
yarn.timeline-service.address if
yarn.timeline-service.generic-application-history.enabled is true, and the web
proxy its own history server, as today.
- getApplicationReport, and the REST getApp and getAppState, return the report
of the history server. The web proxy redirects to the application page of the
history server the report came from.
- The RPC and REST interceptors ask the history servers as the client, as they
ask the RMs, so that the history servers apply their application ACLs to the
client. As for the RMs, the history servers must allow the Router's user to
impersonate the clients. The web proxy asks them as its login user, as it asks
the RMs.
- An application is reported missing only when every RM and every history
server answered that it does not know it. If one of them could not be asked or
failed, the Router answers an error so that the client retries, as a running
application is not in the history servers yet. The REST getApp and getAppState
answer 404, as the RM does, for an application that does not exist, and 503 in
the other case; today they answer an empty response (204) in both cases.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]