Ejemplo n.º 1
0
        protected override void GenerateOverview(ApplicationAttemptReport appAttemptReport
                                                 , ICollection <ContainerReport> containers, AppAttemptInfo appAttempt, string node
                                                 )
        {
            string blacklistedNodes    = "-";
            ICollection <string> nodes = GetBlacklistedNodes(rm, GetRMAppAttempt().GetAppAttemptId
                                                                 ());

            if (nodes != null)
            {
                if (!nodes.IsEmpty())
                {
                    blacklistedNodes = StringUtils.Join(nodes, ", ");
                }
            }
            Info("Application Attempt Overview").("Application Attempt State:", appAttempt.GetAppAttemptState
                                                      () == null ? Unavailable : appAttempt.GetAppAttemptState()).("AM Container:", appAttempt
                                                                                                                   .GetAmContainerId() == null || containers == null || !HasAMContainer(appAttemptReport
                                                                                                                                                                                        .GetAMContainerId(), containers) ? null : Root_url("container", appAttempt.GetAmContainerId
                                                                                                                                                                                                                                               ()), appAttempt.GetAmContainerId().ToString()).("Node:", node).("Tracking URL:",
                                                                                                                                                                                                                                                                                                               appAttempt.GetTrackingUrl() == null || appAttempt.GetTrackingUrl().Equals(Unavailable
                                                                                                                                                                                                                                                                                                                                                                                         ) ? null : Root_url(appAttempt.GetTrackingUrl()), appAttempt.GetTrackingUrl() ==
                                                                                                                                                                                                                                                                                                               null || appAttempt.GetTrackingUrl().Equals(Unavailable) ? "Unassigned" : appAttempt
                                                                                                                                                                                                                                                                                                               .GetAppAttemptState() == YarnApplicationAttemptState.Finished || appAttempt.GetAppAttemptState
                                                                                                                                                                                                                                                                                                                   () == YarnApplicationAttemptState.Failed || appAttempt.GetAppAttemptState() == YarnApplicationAttemptState
                                                                                                                                                                                                                                                                                                               .Killed ? "History" : "ApplicationMaster").("Diagnostics Info:", appAttempt.GetDiagnosticsInfo
                                                                                                                                                                                                                                                                                                                                                               () == null ? string.Empty : appAttempt.GetDiagnosticsInfo()).("Blacklisted Nodes:"
                                                                                                                                                                                                                                                                                                                                                                                                                             , blacklistedNodes);
        }
Ejemplo n.º 2
0
 protected internal virtual void GenerateOverview(ApplicationAttemptReport appAttemptReport
                                                  , ICollection <ContainerReport> containers, AppAttemptInfo appAttempt, string node
                                                  )
 {
     Info("Application Attempt Overview").("Application Attempt State:", appAttempt.GetAppAttemptState
                                               () == null ? Unavailable : appAttempt.GetAppAttemptState()).("AM Container:", appAttempt
                                                                                                            .GetAmContainerId() == null || containers == null || !HasAMContainer(appAttemptReport
                                                                                                                                                                                 .GetAMContainerId(), containers) ? null : Root_url("container", appAttempt.GetAmContainerId
                                                                                                                                                                                                                                        ()), appAttempt.GetAmContainerId().ToString()).("Node:", node).("Tracking URL:",
                                                                                                                                                                                                                                                                                                        appAttempt.GetTrackingUrl() == null || appAttempt.GetTrackingUrl().Equals(Unavailable
                                                                                                                                                                                                                                                                                                                                                                                  ) ? null : Root_url(appAttempt.GetTrackingUrl()), appAttempt.GetTrackingUrl() ==
                                                                                                                                                                                                                                                                                                        null || appAttempt.GetTrackingUrl().Equals(Unavailable) ? "Unassigned" : appAttempt
                                                                                                                                                                                                                                                                                                        .GetAppAttemptState() == YarnApplicationAttemptState.Finished || appAttempt.GetAppAttemptState
                                                                                                                                                                                                                                                                                                            () == YarnApplicationAttemptState.Failed || appAttempt.GetAppAttemptState() == YarnApplicationAttemptState
                                                                                                                                                                                                                                                                                                        .Killed ? "History" : "ApplicationMaster").("Diagnostics Info:", appAttempt.GetDiagnosticsInfo
                                                                                                                                                                                                                                                                                                                                                        () == null ? string.Empty : appAttempt.GetDiagnosticsInfo());
 }