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);
        }
Пример #2
0
 public CheckAclImpl(TimelineDataManager _enclosing, UserGroupInformation callerUGI
                     )
 {
     this._enclosing = _enclosing;
     this.ugi        = callerUGI;
 }