YARN-4682. AMRM client to log when AMRM token updated. (Prabhu Joseph via stevel)

This commit is contained in:
Steve Loughran 2016-02-12 10:58:09 +00:00
parent 26934cf6c7
commit 706351afb8
2 changed files with 4 additions and 0 deletions

View File

@ -608,6 +608,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

View File

@ -915,6 +915,7 @@ public class AMRMClientImpl<T extends ContainerRequest> extends AMRMClient<T> {
// 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()));
}