YARN-3110. Few issues in ApplicationHistory web ui. Contributed by Naganarasimha G R
(cherry picked from commit 19a4feaf6f
)
This commit is contained in:
parent
c16af2f6f8
commit
7941cc554b
|
@ -100,6 +100,8 @@ Release 2.8.0 - UNRELEASED
|
|||
YARN-2429. TestAMRMTokens.testTokenExpiry fails Intermittently with
|
||||
error message:Invalid AMRMToken (zxu via rkanter)
|
||||
|
||||
YARN-3110. Few issues in ApplicationHistory web ui. (Naganarasimha G R via xgong)
|
||||
|
||||
Release 2.7.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -219,10 +219,11 @@ public class ApplicationHistoryManagerOnTimelineStore extends AbstractService
|
|||
String type = null;
|
||||
long createdTime = 0;
|
||||
long finishedTime = 0;
|
||||
float progress = 0.0f;
|
||||
ApplicationAttemptId latestApplicationAttemptId = null;
|
||||
String diagnosticsInfo = null;
|
||||
FinalApplicationStatus finalStatus = FinalApplicationStatus.UNDEFINED;
|
||||
YarnApplicationState state = null;
|
||||
YarnApplicationState state = YarnApplicationState.ACCEPTED;
|
||||
ApplicationResourceUsageReport appResources = null;
|
||||
Map<ApplicationAccessType, String> appViewACLs =
|
||||
new HashMap<ApplicationAccessType, String>();
|
||||
|
@ -245,7 +246,7 @@ public class ApplicationHistoryManagerOnTimelineStore extends AbstractService
|
|||
ConverterUtils.toApplicationId(entity.getEntityId()),
|
||||
latestApplicationAttemptId, user, queue, name, null, -1, null, state,
|
||||
diagnosticsInfo, null, createdTime, finishedTime, finalStatus, null,
|
||||
null, 1.0F, type, null), appViewACLs);
|
||||
null, progress, type, null), appViewACLs);
|
||||
}
|
||||
if (entityInfo.containsKey(ApplicationMetricsConstants.QUEUE_ENTITY_INFO)) {
|
||||
queue =
|
||||
|
@ -279,6 +280,7 @@ public class ApplicationHistoryManagerOnTimelineStore extends AbstractService
|
|||
createdTime = event.getTimestamp();
|
||||
} else if (event.getEventType().equals(
|
||||
ApplicationMetricsConstants.FINISHED_EVENT_TYPE)) {
|
||||
progress=1.0F;
|
||||
finishedTime = event.getTimestamp();
|
||||
Map<String, Object> eventInfo = event.getEventInfo();
|
||||
if (eventInfo == null) {
|
||||
|
@ -321,7 +323,7 @@ public class ApplicationHistoryManagerOnTimelineStore extends AbstractService
|
|||
ConverterUtils.toApplicationId(entity.getEntityId()),
|
||||
latestApplicationAttemptId, user, queue, name, null, -1, null, state,
|
||||
diagnosticsInfo, null, createdTime, finishedTime, finalStatus, appResources,
|
||||
null, 1.0F, type, null), appViewACLs);
|
||||
null, progress, type, null), appViewACLs);
|
||||
}
|
||||
|
||||
private static ApplicationAttemptReport convertToApplicationAttemptReport(
|
||||
|
|
|
@ -194,17 +194,18 @@ public class AppAttemptBlock extends HtmlBlock {
|
|||
protected void generateOverview(ApplicationAttemptReport appAttemptReport,
|
||||
Collection<ContainerReport> containers, AppAttemptInfo appAttempt,
|
||||
String node) {
|
||||
String amContainerId = appAttempt.getAmContainerId();
|
||||
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()),
|
||||
String.valueOf(appAttempt.getAmContainerId()))
|
||||
._("AM Container:",
|
||||
amContainerId == null
|
||||
|| containers == null
|
||||
|| !hasAMContainer(appAttemptReport.getAMContainerId(),
|
||||
containers) ? null : root_url("container", amContainerId),
|
||||
amContainerId == null ? "N/A" : amContainerId)
|
||||
._("Node:", node)
|
||||
._(
|
||||
"Tracking URL:",
|
||||
|
|
Loading…
Reference in New Issue