/// <exception cref="System.Exception"/> protected override void ServiceInit(Configuration conf) { if (rmContext.IsHAEnabled()) { autoFailoverEnabled = HAUtil.IsAutomaticFailoverEnabled(conf); if (autoFailoverEnabled) { if (HAUtil.IsAutomaticFailoverEmbedded(conf)) { embeddedElector = CreateEmbeddedElectorService(); AddIfService(embeddedElector); } } } masterServiceBindAddress = conf.GetSocketAddr(YarnConfiguration.RmBindHost, YarnConfiguration .RmAdminAddress, YarnConfiguration.DefaultRmAdminAddress, YarnConfiguration.DefaultRmAdminPort ); daemonUser = UserGroupInformation.GetCurrentUser(); authorizer = YarnAuthorizationProvider.GetInstance(conf); authorizer.SetAdmins(GetAdminAclList(conf), UserGroupInformation.GetCurrentUser() ); rmId = conf.Get(YarnConfiguration.RmHaId); base.ServiceInit(conf); }