public class LogAggregationService extends org.apache.hadoop.yarn.service.AbstractService implements LogHandler
| Constructor and Description |
|---|
LogAggregationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
Context context,
DeletionService deletionService,
LocalDirsHandlerService dirsHandler) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected org.apache.hadoop.fs.FileSystem |
getFileSystem(org.apache.hadoop.conf.Configuration conf) |
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() |
public LogAggregationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
Context context,
DeletionService deletionService,
LocalDirsHandlerService dirsHandler)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractServiceprotected org.apache.hadoop.fs.FileSystem getFileSystem(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionprotected void createAppDir(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi)
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)
protected void closeFileSystems(org.apache.hadoop.security.UserGroupInformation userUgi)
public void handle(LogHandlerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<LogHandlerEvent>handle in interface LogHandlerCopyright © 2014 Apache Software Foundation. All Rights Reserved.