Class AppLogAggregatorImpl
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.AppLogAggregatorImpl
- All Implemented Interfaces:
Runnable,AppLogAggregator
-
Constructor Summary
ConstructorsConstructorDescriptionAppLogAggregatorImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, DeletionService deletionService, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi, org.apache.hadoop.yarn.api.records.NodeId nodeId, LocalDirsHandlerService dirsHandler, org.apache.hadoop.fs.Path remoteNodeLogFileForApp, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Context context, org.apache.hadoop.fs.FileContext lfs, long rollingMonitorInterval) AppLogAggregatorImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, DeletionService deletionService, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi, org.apache.hadoop.yarn.api.records.NodeId nodeId, LocalDirsHandlerService dirsHandler, org.apache.hadoop.fs.Path remoteNodeLogFileForApp, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Context context, org.apache.hadoop.fs.FileContext lfs, long rollingMonitorInterval, long recoveredLogInitedTime) AppLogAggregatorImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, DeletionService deletionService, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi, org.apache.hadoop.yarn.api.records.NodeId nodeId, LocalDirsHandlerService dirsHandler, org.apache.hadoop.fs.Path remoteNodeLogFileForApp, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Context context, org.apache.hadoop.fs.FileContext lfs, long rollingMonitorInterval, long recoveredLogInitedTime, org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileController logAggregationFileController) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidorg.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileControllerorg.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileControllerContextorg.apache.hadoop.security.UserGroupInformationgetUgi()booleanvoidrun()voidstartContainerLogAggregation(org.apache.hadoop.yarn.server.api.ContainerLogContext logContext) org.apache.hadoop.security.UserGroupInformationupdateCredentials(org.apache.hadoop.security.Credentials cred)
-
Constructor Details
-
AppLogAggregatorImpl
public AppLogAggregatorImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, DeletionService deletionService, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi, org.apache.hadoop.yarn.api.records.NodeId nodeId, LocalDirsHandlerService dirsHandler, org.apache.hadoop.fs.Path remoteNodeLogFileForApp, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Context context, org.apache.hadoop.fs.FileContext lfs, long rollingMonitorInterval) -
AppLogAggregatorImpl
public AppLogAggregatorImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, DeletionService deletionService, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi, org.apache.hadoop.yarn.api.records.NodeId nodeId, LocalDirsHandlerService dirsHandler, org.apache.hadoop.fs.Path remoteNodeLogFileForApp, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Context context, org.apache.hadoop.fs.FileContext lfs, long rollingMonitorInterval, long recoveredLogInitedTime) -
AppLogAggregatorImpl
public AppLogAggregatorImpl(org.apache.hadoop.yarn.event.Dispatcher dispatcher, DeletionService deletionService, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.security.UserGroupInformation userUgi, org.apache.hadoop.yarn.api.records.NodeId nodeId, LocalDirsHandlerService dirsHandler, org.apache.hadoop.fs.Path remoteNodeLogFileForApp, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Context context, org.apache.hadoop.fs.FileContext lfs, long rollingMonitorInterval, long recoveredLogInitedTime, org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileController logAggregationFileController)
-
-
Method Details
-
run
public void run() -
startContainerLogAggregation
public void startContainerLogAggregation(org.apache.hadoop.yarn.server.api.ContainerLogContext logContext) - Specified by:
startContainerLogAggregationin interfaceAppLogAggregator
-
finishLogAggregation
public void finishLogAggregation()- Specified by:
finishLogAggregationin interfaceAppLogAggregator
-
abortLogAggregation
public void abortLogAggregation()- Specified by:
abortLogAggregationin interfaceAppLogAggregator
-
disableLogAggregation
public void disableLogAggregation()- Specified by:
disableLogAggregationin interfaceAppLogAggregator
-
enableLogAggregation
public void enableLogAggregation()- Specified by:
enableLogAggregationin interfaceAppLogAggregator
-
isAggregationEnabled
public boolean isAggregationEnabled()- Specified by:
isAggregationEnabledin interfaceAppLogAggregator
-
doLogAggregationOutOfBand
@Private @VisibleForTesting public void doLogAggregationOutOfBand() -
getUgi
@VisibleForTesting public org.apache.hadoop.security.UserGroupInformation getUgi() -
updateCredentials
public org.apache.hadoop.security.UserGroupInformation updateCredentials(org.apache.hadoop.security.Credentials cred) - Specified by:
updateCredentialsin interfaceAppLogAggregator
-
getLogAggregationFileController
@VisibleForTesting public org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileController getLogAggregationFileController() -
getLogAggregationFileControllerContext
@VisibleForTesting public org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationFileControllerContext getLogAggregationFileControllerContext()
-