From 2ea1913cad4d53147a47b79e14111955d7e7a938 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 12 Feb 2016 10:58:09 +0000 Subject: [PATCH] YARN-4682. AMRM client to log when AMRM token updated. (Prabhu Joseph via stevel) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 71e92939cf2..182ddbc5fe1 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -764,6 +764,9 @@ Release 2.8.0 - UNRELEASED YARN-2575. Create separate ACLs for Reservation create/update/delete/list ops (Sean Po via asuresh) + YARN-4682. AMRM client to log when AMRM token updated. + (Prabhu Joseph via stevel) + OPTIMIZATIONS YARN-3339. TestDockerContainerExecutor should pull a single image and not diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java index d2e931e0f6a..37a1fb6a698 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java @@ -915,6 +915,7 @@ public class AMRMClientImpl extends AMRMClient { // to ensure we replace the previous token setup by the RM. // Afterwards we can update the service address for the RPC layer. UserGroupInformation currentUGI = UserGroupInformation.getCurrentUser(); + LOG.info("Updating with new AMRMToken"); currentUGI.addToken(amrmToken); amrmToken.setService(ClientRMProxy.getAMRMTokenService(getConfig())); }