Book Image

YARN Essentials

Book Image

YARN Essentials

Overview of this book

Table of Contents (17 chapters)
YARN Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Need for YARN
9
YARN – Alternative Solutions
Index

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...