First the client submits the program to the ResourceManager (including the Applicationmaster program,ApplicationmasterAfter starting the command, the user program),ResourceManagerApply resources to the resource scheduler once theApplicationmasterThe resources needed,ApplicationmasterLaucher and the corresponding NodeManager contact startApplicationmaster, at the same time toApplicationmasterLivenessmonitor added to the monitor list to start theApplicationmasterThe monitoring,ApplicationmasterAfter starting, toApplicationmasterService registration reports its own port number, Ip,track URL, etc., and thenApplicationmasterWill regularly toApplicationmasterService sends Heartbeat, executes allocate,ApplicationmasterThe service willApplicationmasterLivenessmonitor UpdateApplicationmasterThe heartbeat time, when the user program is completed,ApplicationmasterToApplicationmasterService report completed,ApplicationmasterService NotificationsApplicationmasterLivenessmonitor removed from the monitoring listApplicationmaster, freeing up resources.