Пример #1
0
 public _Runnable_381(LogAggregationService _enclosing, AppLogAggregator appLogAggregator
                      , ApplicationId appId, UserGroupInformation userUgi)
 {
     this._enclosing       = _enclosing;
     this.appLogAggregator = appLogAggregator;
     this.appId            = appId;
     this.userUgi          = userUgi;
 }
Пример #2
0
        private void StopApp(ApplicationId appId)
        {
            // App is complete. Finish up any containers' pending log aggregation and
            // close the application specific logFile.
            AppLogAggregator aggregator = this.appLogAggregators[appId];

            if (aggregator == null)
            {
                Log.Warn("Log aggregation is not initialized for " + appId + ", did it fail to start?"
                         );
                return;
            }
            aggregator.FinishLogAggregation();
        }
Пример #3
0
        private void StopContainer(ContainerId containerId, int exitCode)
        {
            // A container is complete. Put this containers' logs up for aggregation if
            // this containers' logs are needed.
            AppLogAggregator aggregator = this.appLogAggregators[containerId.GetApplicationAttemptId
                                                                     ().GetApplicationId()];

            if (aggregator == null)
            {
                Log.Warn("Log aggregation is not initialized for " + containerId + ", did it fail to start?"
                         );
                return;
            }
            aggregator.StartContainerLogAggregation(containerId, exitCode == 0);
        }