The YARN application workflow
Now, take a look at the following sequence diagram that describes the YARN application workflow and also explains how container allocation is done for an application via the ApplicationMaster:
Refer to the preceding diagram for the following details:
The client submits the application request to the ResourceManager.
The ResourceManager registers the application with the ApplicationManager, generates the ApplicationID, and responds to the client with the successfully registered ApplicationID.
Then, the ResourceManager starts the client's ApplicationMaster in a separate available container. If no container is available, then this request has to wait till a suitable container is found, and send the application registration request for application registration.
The ResourceManager shares all the minimum and maximum resource capabilities of the cluster with the ApplicationMaster. Then, the ApplicationMaster decides how to efficiently use the available resources to fulfill...