public TimelineDataManager(TimelineStore store, TimelineACLsManager timelineACLsManager
                            )
     : base(typeof(Org.Apache.Hadoop.Yarn.Server.Timeline.TimelineDataManager).FullName
            )
 {
     this.store = store;
     this.timelineACLsManager = timelineACLsManager;
     timelineACLsManager.SetTimelineStore(store);
 }
Exemple #2
0
        public virtual void Setup()
        {
            // Only test the ACLs of the generic history
            TimelineACLsManager aclsManager = new TimelineACLsManager(new YarnConfiguration()
                                                                      );
            TimelineDataManager    dataManager    = new TimelineDataManager(store, aclsManager);
            ApplicationACLsManager appAclsManager = new ApplicationACLsManager(conf);

            historyManager = new ApplicationHistoryManagerOnTimelineStore(dataManager, appAclsManager
                                                                          );
            historyManager.Init(conf);
            historyManager.Start();
        }
Exemple #3
0
        public static void Setup()
        {
            Configuration conf  = new YarnConfiguration();
            TimelineStore store = TestApplicationHistoryManagerOnTimelineStore.CreateStore(MaxApps
                                                                                           );
            TimelineACLsManager aclsManager = new TimelineACLsManager(conf);

            dataManager = new TimelineDataManager(store, aclsManager);
            ApplicationACLsManager appAclsManager = new ApplicationACLsManager(conf);
            ApplicationHistoryManagerOnTimelineStore historyManager = new ApplicationHistoryManagerOnTimelineStore
                                                                          (dataManager, appAclsManager);

            historyManager.Init(conf);
            historyManager.Start();
            clientService = new ApplicationHistoryClientService(historyManager);
        }
        public static void SetupClass()
        {
            Configuration conf  = new YarnConfiguration();
            TimelineStore store = TestApplicationHistoryManagerOnTimelineStore.CreateStore(MaxApps
                                                                                           );
            TimelineACLsManager aclsManager = new TimelineACLsManager(conf);
            TimelineDataManager dataManager = new TimelineDataManager(store, aclsManager);

            conf.SetBoolean(YarnConfiguration.YarnAclEnable, true);
            conf.Set(YarnConfiguration.YarnAdminAcl, "foo");
            ApplicationACLsManager appAclsManager = new ApplicationACLsManager(conf);
            ApplicationHistoryManagerOnTimelineStore historyManager = new ApplicationHistoryManagerOnTimelineStore
                                                                          (dataManager, appAclsManager);

            historyManager.Init(conf);
            historyClientService = new _ApplicationHistoryClientService_98(historyManager);
            // Do Nothing
            historyClientService.Init(conf);
            historyClientService.Start();
        }
        public virtual void Setup()
        {
            fsPath = new FilePath("target", this.GetType().Name + "-tmpDir").GetAbsoluteFile(
                );
            fsContext = FileContext.GetLocalFSFileContext();
            fsContext.Delete(new Path(fsPath.GetAbsolutePath()), true);
            Configuration conf = new YarnConfiguration();

            conf.Set(YarnConfiguration.TimelineServiceLeveldbPath, fsPath.GetAbsolutePath());
            conf.SetBoolean(YarnConfiguration.TimelineServiceTtlEnable, false);
            store = new LeveldbTimelineStore();
            store.Init(conf);
            store.Start();
            LoadTestEntityData();
            LoadVerificationEntityData();
            LoadTestDomainData();
            conf.SetBoolean(YarnConfiguration.YarnAclEnable, false);
            aclsManager = new TimelineACLsManager(conf);
            dataManaer  = new TimelineDataManager(store, aclsManager);
            conf.SetBoolean(YarnConfiguration.YarnAclEnable, true);
            conf.Set(YarnConfiguration.YarnAdminAcl, "admin");
            adminACLsManager = new AdminACLsManager(conf);
        }