}
@Override
public void serviceStart() {
try {
RegisterApplicationMasterResponse response;
synchronized (this) {
amRmClient.start();
response = amRmClient.registerApplicationMaster(appHostName,
appHostPort,
appTrackingUrl);
}
// upcall to app outside locks
appClientDelegate.setApplicationRegistrationData(
response.getMaximumResourceCapability(),
response.getApplicationACLs(),
response.getClientToAMTokenMasterKey());
delayedContainerManager.start();
} catch (YarnException e) {
LOG.error("Yarn Exception while registering", e);
throw new TezUncheckedException(e);