Search in sources :

Example 1 with SharedCacheUploadService

use of org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploadService in project hadoop by apache.

the class ContainerManagerImpl method serviceInit.

@Override
public void serviceInit(Configuration conf) throws Exception {
    LogHandler logHandler = createLogHandler(conf, this.context, this.deletionService);
    addIfService(logHandler);
    dispatcher.register(LogHandlerEventType.class, logHandler);
    // add the shared cache upload service (it will do nothing if the shared
    // cache is disabled)
    SharedCacheUploadService sharedCacheUploader = createSharedCacheUploaderService();
    addService(sharedCacheUploader);
    dispatcher.register(SharedCacheUploadEventType.class, sharedCacheUploader);
    createAMRMProxyService(conf);
    waitForContainersOnShutdownMillis = conf.getLong(YarnConfiguration.NM_SLEEP_DELAY_BEFORE_SIGKILL_MS, YarnConfiguration.DEFAULT_NM_SLEEP_DELAY_BEFORE_SIGKILL_MS) + conf.getLong(YarnConfiguration.NM_PROCESS_KILL_WAIT_MS, YarnConfiguration.DEFAULT_NM_PROCESS_KILL_WAIT_MS) + SHUTDOWN_CLEANUP_SLOP_MS;
    super.serviceInit(conf);
    recover();
}
Also used : NonAggregatingLogHandler(org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.NonAggregatingLogHandler) LogHandler(org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.LogHandler) SharedCacheUploadService(org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploadService)

Aggregations

SharedCacheUploadService (org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploadService)1 LogHandler (org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.LogHandler)1 NonAggregatingLogHandler (org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.NonAggregatingLogHandler)1