Search in sources :

Example 6 with TimelineACLsManager

use of org.apache.hadoop.yarn.server.timeline.security.TimelineACLsManager in project hadoop by apache.

the class ApplicationHistoryServer method createTimelineDataManager.

private TimelineDataManager createTimelineDataManager(Configuration conf) {
    TimelineACLsManager aclsMgr = new TimelineACLsManager(conf);
    aclsMgr.setTimelineStore(timelineStore);
    return new TimelineDataManager(timelineStore, aclsMgr);
}
Also used : TimelineDataManager(org.apache.hadoop.yarn.server.timeline.TimelineDataManager) TimelineACLsManager(org.apache.hadoop.yarn.server.timeline.security.TimelineACLsManager)

Example 7 with TimelineACLsManager

use of org.apache.hadoop.yarn.server.timeline.security.TimelineACLsManager in project hadoop by apache.

the class TestApplicationHistoryClientService method setup.

@BeforeClass
public static void setup() throws Exception {
    Configuration conf = new YarnConfiguration();
    TimelineStore store = TestApplicationHistoryManagerOnTimelineStore.createStore(MAX_APPS);
    TimelineACLsManager aclsManager = new TimelineACLsManager(conf);
    aclsManager.setTimelineStore(store);
    dataManager = new TimelineDataManager(store, aclsManager);
    dataManager.init(conf);
    ApplicationACLsManager appAclsManager = new ApplicationACLsManager(conf);
    ApplicationHistoryManagerOnTimelineStore historyManager = new ApplicationHistoryManagerOnTimelineStore(dataManager, appAclsManager);
    historyManager.init(conf);
    historyManager.start();
    clientService = new ApplicationHistoryClientService(historyManager);
}
Also used : TimelineDataManager(org.apache.hadoop.yarn.server.timeline.TimelineDataManager) ApplicationACLsManager(org.apache.hadoop.yarn.server.security.ApplicationACLsManager) YarnConfiguration(org.apache.hadoop.yarn.conf.YarnConfiguration) Configuration(org.apache.hadoop.conf.Configuration) YarnConfiguration(org.apache.hadoop.yarn.conf.YarnConfiguration) TimelineStore(org.apache.hadoop.yarn.server.timeline.TimelineStore) TimelineACLsManager(org.apache.hadoop.yarn.server.timeline.security.TimelineACLsManager) BeforeClass(org.junit.BeforeClass)

Aggregations

TimelineACLsManager (org.apache.hadoop.yarn.server.timeline.security.TimelineACLsManager)7 YarnConfiguration (org.apache.hadoop.yarn.conf.YarnConfiguration)5 Configuration (org.apache.hadoop.conf.Configuration)4 TimelineDataManager (org.apache.hadoop.yarn.server.timeline.TimelineDataManager)4 ApplicationACLsManager (org.apache.hadoop.yarn.server.security.ApplicationACLsManager)3 TimelineStore (org.apache.hadoop.yarn.server.timeline.TimelineStore)2 Before (org.junit.Before)2 BeforeClass (org.junit.BeforeClass)2 MappingJsonFactory (com.fasterxml.jackson.databind.MappingJsonFactory)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 JaxbAnnotationIntrospector (com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector)1 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)1 ClientHandlerException (com.sun.jersey.api.client.ClientHandlerException)1 UniformInterfaceException (com.sun.jersey.api.client.UniformInterfaceException)1 File (java.io.File)1 ScheduledThreadPoolExecutor (java.util.concurrent.ScheduledThreadPoolExecutor)1 ServletException (javax.servlet.ServletException)1 Path (org.apache.hadoop.fs.Path)1 AdminACLsManager (org.apache.hadoop.yarn.security.AdminACLsManager)1 ApplicationHistoryClientService (org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService)1