YARN-2070. Made DistributedShell publish the short user name to the timeline server. Contributed by Robert Kanter.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1617837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41aa4badf8
commit
1a535f8dcd
@ -190,6 +190,9 @@ Release 2.6.0 - UNRELEASED
|
||||
YARN-2361. RMAppAttempt state machine entries for KILLED state has duplicate
|
||||
event entries. (Zhihai Xu via kasha)
|
||||
|
||||
YARN-2070. Made DistributedShell publish the short user name to the timeline
|
||||
server. (Robert Kanter via zjshen)
|
||||
|
||||
Release 2.5.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -1054,8 +1054,8 @@ private static void publishContainerStartEvent(TimelineClient timelineClient,
|
||||
TimelineEntity entity = new TimelineEntity();
|
||||
entity.setEntityId(container.getId().toString());
|
||||
entity.setEntityType(DSEntity.DS_CONTAINER.toString());
|
||||
entity.addPrimaryFilter("user", UserGroupInformation.getCurrentUser()
|
||||
.toString());
|
||||
entity.addPrimaryFilter("user",
|
||||
UserGroupInformation.getCurrentUser().getShortUserName());
|
||||
TimelineEvent event = new TimelineEvent();
|
||||
event.setTimestamp(System.currentTimeMillis());
|
||||
event.setEventType(DSEvent.DS_CONTAINER_START.toString());
|
||||
@ -1071,8 +1071,8 @@ private static void publishContainerEndEvent(TimelineClient timelineClient,
|
||||
TimelineEntity entity = new TimelineEntity();
|
||||
entity.setEntityId(container.getContainerId().toString());
|
||||
entity.setEntityType(DSEntity.DS_CONTAINER.toString());
|
||||
entity.addPrimaryFilter("user", UserGroupInformation.getCurrentUser()
|
||||
.toString());
|
||||
entity.addPrimaryFilter("user",
|
||||
UserGroupInformation.getCurrentUser().getShortUserName());
|
||||
TimelineEvent event = new TimelineEvent();
|
||||
event.setTimestamp(System.currentTimeMillis());
|
||||
event.setEventType(DSEvent.DS_CONTAINER_END.toString());
|
||||
@ -1089,8 +1089,8 @@ private static void publishApplicationAttemptEvent(
|
||||
TimelineEntity entity = new TimelineEntity();
|
||||
entity.setEntityId(appAttemptId);
|
||||
entity.setEntityType(DSEntity.DS_APP_ATTEMPT.toString());
|
||||
entity.addPrimaryFilter("user", UserGroupInformation.getCurrentUser()
|
||||
.toString());
|
||||
entity.addPrimaryFilter("user",
|
||||
UserGroupInformation.getCurrentUser().getShortUserName());
|
||||
TimelineEvent event = new TimelineEvent();
|
||||
event.setEventType(appEvent.toString());
|
||||
event.setTimestamp(System.currentTimeMillis());
|
||||
|
Loading…
Reference in New Issue
Block a user