Difference between Application Manager and Application Master in YARN?

前端 未结 2 1303
北海茫月
北海茫月 2021-02-01 21:17

I understood how MRv1 works.Now I am trying to understand MRv2.. what\'s the difference between Application Manager and Application Master in YARN?

相关标签:
2条回答
  • 2021-02-01 21:51

    The terms Application Master and Application Manager are often used interchangeably. In reality Application Master is the main container requesting, launching and monitoring application specific resources, whereas Application Manager is a component inside ResourceManager. More details about Application Manager is given below.

    The ApplicationsManager is responsible for maintaining a collection of submitted applications. After application submission, it first validates the application’s specifications and rejects any application that requests unsatisfiable resources for its ApplicationMaster (i.e., there is no node in the cluster that has enough resources to run the ApplicationMaster itself). It then ensures that no other application was already submitted with the same application ID—a scenario that can be caused by an erroneous or a malicious client. Finally, it forwards the admitted application to the scheduler. This component is also responsible for recording and managing finished applications for a while before they are completely evacuated from the ResourceManager’s memory. When an application finishes, it places an ApplicationSummary in the daemon’s log file. Finally, the ApplicationsManager keeps a cache of completed applications long after applications finish to support users’ requests for application data (via web UI or command line). The configuration property yarn.resourcemanager.max-completed-applications controls the maximum number of such finished applications that the ResourceManager remembers at any point of time. The cache is a first-in, first-out list, with the oldest applications being moved out to accommodate freshly finished applications.

    enter image description here

    Reference: Hadoop YARN Book

    0 讨论(0)
  • 2021-02-01 22:05

    Here Application refers to a single job assigned to the framework.

    The Application manager is responsible to accept or reject the application when it is submitted to the Resource manager by the client.

    The Application master is responsible for the execution of a single application when it is assigned to the Node manager by the Resource manager.

    Does this make sense?

    0 讨论(0)
提交回复
热议问题