yarnClient.init(conf); summaryStore = createSummaryStore(); summaryStore.init(conf); long logRetainSecs = conf.getLong( TIMELINE_SERVICE_ENTITYFILE_RETAIN_SECONDS,
protected void serviceInit(Configuration conf) throws Exception { summaryStore = createSummaryStore(); summaryStore.init(conf); long logRetainSecs = conf.getLong( YarnConfiguration.TIMELINE_SERVICE_ENTITYGROUP_FS_STORE_RETAIN_SECONDS,
@Before public void setup() throws Exception { fsContext = FileContext.getLocalFSFileContext(); fsPath = new File("target", this.getClass().getSimpleName() + "-tmpDir").getAbsoluteFile(); fsContext.delete(new Path(fsPath.getAbsolutePath()), true); config.set(YarnConfiguration.TIMELINE_SERVICE_LEVELDB_PATH, fsPath.getAbsolutePath()); config.setBoolean(YarnConfiguration.TIMELINE_SERVICE_TTL_ENABLE, false); store = new LeveldbTimelineStore(); store.init(config); store.start(); loadTestEntityData(); loadVerificationEntityData(); loadTestDomainData(); }
@Before public void setup() throws Exception { fsContext = FileContext.getLocalFSFileContext(); fsPath = new File("target", this.getClass().getSimpleName() + "-tmpDir").getAbsoluteFile(); fsContext.delete(new Path(fsPath.getAbsolutePath()), true); config.set(YarnConfiguration.TIMELINE_SERVICE_LEVELDB_PATH, fsPath.getAbsolutePath()); config.setBoolean(YarnConfiguration.TIMELINE_SERVICE_TTL_ENABLE, false); store = new RollingLevelDBTimelineStore(); store.init(config); store.start(); loadTestEntityData(); loadVerificationEntityData(); loadTestDomainData(); }
private void restartTimelineStore() throws IOException { // need to close so leveldb releases database lock if (store != null) { store.close(); } store = new LeveldbTimelineStore(); store.init(config); store.start(); }
private void restartTimelineStore() throws IOException { // need to close so leveldb releases database lock if (store != null) { store.close(); } store = new RollingLevelDBTimelineStore(); store.init(config); store.start(); }
"LeveldbCache." + groupId); store.init(config); store.start();
@Before public void setup() throws Exception { fsPath = new File("target", this.getClass().getSimpleName() + "-tmpDir").getAbsoluteFile(); fsContext = FileContext.getLocalFSFileContext(); fsContext.delete(new Path(fsPath.getAbsolutePath()), true); Configuration conf = new YarnConfiguration(); conf.set(YarnConfiguration.TIMELINE_SERVICE_LEVELDB_PATH, fsPath.getAbsolutePath()); conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_TTL_ENABLE, false); store = new LeveldbTimelineStore(); store.init(conf); store.start(); loadTestEntityData(); loadVerificationEntityData(); loadTestDomainData(); conf.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, false); aclsManager = new TimelineACLsManager(conf); aclsManager.setTimelineStore(store); dataManaer = new TimelineDataManager(store, aclsManager); conf.setBoolean(YarnConfiguration.YARN_ACL_ENABLE, true); conf.set(YarnConfiguration.YARN_ADMIN_ACL, "admin"); dataManaer.init(conf); adminACLsManager = new AdminACLsManager(conf); }
MemoryTimelineStore.class, TimelineStore.class), config); store.init(config); store.start(); } else {
public synchronized TimelineStore refreshCache() throws IOException { //TODO: make a config for cache freshness if (!cacheCompleted && Time.monotonicNow() - cacheRefreshTime > 10000) { if (!isDone()) { parseSummaryLogs(); } else if (detailLogs.isEmpty()) { scanForLogs(); } if (!detailLogs.isEmpty()) { if (cacheStore == null) { cacheStore = new MemoryTimelineStore(); cacheStore.init(getConfig()); cacheStore.start(); } TimelineDataManager tdm = new TimelineDataManager(cacheStore, aclManager); tdm.init(getConfig()); tdm.start(); for (LogInfo log : detailLogs) { log.parseForCache(tdm, dirPath, isDone()); } tdm.close(); } cacheRefreshTime = Time.monotonicNow(); cacheCompleted = isDone(); } return cacheStore; }
@Before public void setup() throws Exception { store = new LevelDBCacheTimelineStore("app1"); store.init(new YarnConfiguration()); store.start(); loadTestEntityData(); loadVerificationEntityData(); loadTestDomainData(); }
@Before public void setup() throws Exception { store = new MemoryTimelineStore(); store.init(new YarnConfiguration()); store.start(); loadTestEntityData(); loadVerificationEntityData(); loadTestDomainData(); }