The protocol between a live instance of ApplicationMaster and the ResourceManager.
ApplicationMaster
ResourceManager
This is used by the ApplicationMaster to register/unregister and to request and obtain resources in the cluster from the ResourceManager.
194195196197198199200201202203204
// Submit an application ApplicationId appID = resourceManager.getClientRMService() .getNewApplication(Records.newRecord(GetNewApplicationRequest.class)) .getApplicationId(); AMRMProtocol scheduler = submitAndRegisterApplication(resourceManager, yarnRPC, appID); // Now request a container. final Container allocatedContainer = requestAndGetContainer(scheduler, appID);