org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation
Class LogAggregationService
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.LogAggregationService
- All Implemented Interfaces:
- org.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>, LogHandler, org.apache.hadoop.yarn.service.Service
public class LogAggregationService
- extends org.apache.hadoop.yarn.service.AbstractService
- implements LogHandler
| Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
|
Method Summary |
protected void |
closeFileSystems(org.apache.hadoop.security.UserGroupInformation userUgi)
|
protected void |
createAppDir(String user,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.security.UserGroupInformation userUgi)
|
void |
handle(LogHandlerEvent event)
|
void |
init(org.apache.hadoop.conf.Configuration conf)
|
protected void |
initAppAggregator(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String user,
org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.yarn.logaggregation.ContainerLogsRetentionPolicy logRetentionPolicy,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.hadoop.yarn.service.AbstractService |
getConfig, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogAggregationService
public LogAggregationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
Context context,
DeletionService deletionService,
LocalDirsHandlerService dirsHandler)
init
public void init(org.apache.hadoop.conf.Configuration conf)
- Specified by:
init in interface org.apache.hadoop.yarn.service.Service- Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService
start
public void start()
- Specified by:
start in interface org.apache.hadoop.yarn.service.Service- Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService
stop
public void stop()
- Specified by:
stop in interface org.apache.hadoop.yarn.service.Service- Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService
createAppDir
protected void createAppDir(String user,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.security.UserGroupInformation userUgi)
initAppAggregator
protected void initAppAggregator(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String user,
org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.yarn.logaggregation.ContainerLogsRetentionPolicy logRetentionPolicy,
Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,String> appAcls)
closeFileSystems
protected void closeFileSystems(org.apache.hadoop.security.UserGroupInformation userUgi)
handle
public void handle(LogHandlerEvent event)
- Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>- Specified by:
handle in interface LogHandler
Copyright © 2013 Apache Software Foundation. All Rights Reserved.