コード例 #1
0
        /// <exception cref="System.Exception"/>
        protected override void ServiceInit(Configuration conf)
        {
            Configuration config = new YarnConfiguration(conf);

            config.SetBoolean(Dispatcher.DispatcherExitOnErrorKey, true);
            // This is required for WebApps to use https if enabled.
            MRWebAppUtil.Initialize(GetConfig());
            try
            {
                DoSecureLogin(conf);
            }
            catch (IOException ie)
            {
                throw new YarnRuntimeException("History Server Failed to login", ie);
            }
            jobHistoryService       = new JobHistory();
            historyContext          = (HistoryContext)jobHistoryService;
            stateStore              = CreateStateStore(conf);
            this.jhsDTSecretManager = CreateJHSSecretManager(conf, stateStore);
            clientService           = CreateHistoryClientService();
            aggLogDelService        = new AggregatedLogDeletionService();
            hsAdminServer           = new HSAdminServer(aggLogDelService, jobHistoryService);
            AddService(stateStore);
            AddService(new JobHistoryServer.HistoryServerSecretManagerService(this));
            AddService(jobHistoryService);
            AddService(clientService);
            AddService(aggLogDelService);
            AddService(hsAdminServer);
            base.ServiceInit(config);
        }
コード例 #2
0
ファイル: HSAdminServer.cs プロジェクト: orf53975/hadoop.net
 public HSAdminServer(AggregatedLogDeletionService aggLogDelService, JobHistory jobHistoryService
                      )
     : base(typeof(Org.Apache.Hadoop.Mapreduce.V2.HS.Server.HSAdminServer).FullName)
 {
     this.aggLogDelService  = aggLogDelService;
     this.jobHistoryService = jobHistoryService;
 }
コード例 #3
0
 public virtual void Init()
 {
     conf = new JobConf();
     conf.Set(JHAdminConfig.JhsAdminAddress, "0.0.0.0:0");
     conf.SetClass("hadoop.security.group.mapping", typeof(TestHSAdminServer.MockUnixGroupsMapping
                                                           ), typeof(GroupMappingServiceProvider));
     conf.SetLong("hadoop.security.groups.cache.secs", groupRefreshTimeoutSec);
     conf.SetBoolean(CommonConfigurationKeysPublic.HadoopSecurityAuthorization, securityEnabled
                     );
     Groups.GetUserToGroupsMappingService(conf);
     jobHistoryService = Org.Mockito.Mockito.Mock <JobHistory>();
     alds          = Org.Mockito.Mockito.Mock <AggregatedLogDeletionService>();
     hsAdminServer = new _HSAdminServer_119(this, alds, jobHistoryService);
     hsAdminServer.Init(conf);
     hsAdminServer.Start();
     conf.SetSocketAddr(JHAdminConfig.JhsAdminAddress, hsAdminServer.clientRpcServer.GetListenerAddress
                            ());
     hsAdminClient = new HSAdmin(conf);
 }
コード例 #4
0
 public _HSAdminServer_119(TestHSAdminServer _enclosing, AggregatedLogDeletionService
                           baseArg1, JobHistory baseArg2)
     : base(baseArg1, baseArg2)
 {
     this._enclosing = _enclosing;
 }