HADOOP-15591. KMSClientProvider should log KMS DT acquisition at INFO level. Contributed by Kitti Nanasi.
This commit is contained in:
parent
83cd84b70b
commit
def9d94a40
@ -1036,13 +1036,13 @@ public class KMSClientProvider extends KeyProvider implements CryptoExtension,
|
|||||||
public Token<?> run() throws Exception {
|
public Token<?> run() throws Exception {
|
||||||
// Not using the cached token here.. Creating a new token here
|
// Not using the cached token here.. Creating a new token here
|
||||||
// everytime.
|
// everytime.
|
||||||
LOG.debug("Getting new token from {}, renewer:{}", url, renewer);
|
LOG.info("Getting new token from {}, renewer:{}", url, renewer);
|
||||||
return authUrl.getDelegationToken(url,
|
return authUrl.getDelegationToken(url,
|
||||||
new DelegationTokenAuthenticatedURL.Token(), renewer, doAsUser);
|
new DelegationTokenAuthenticatedURL.Token(), renewer, doAsUser);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (token != null) {
|
if (token != null) {
|
||||||
LOG.debug("New token received: ({})", token);
|
LOG.info("New token received: ({})", token);
|
||||||
credentials.addToken(token.getService(), token);
|
credentials.addToken(token.getService(), token);
|
||||||
tokens = new Token<?>[] { token };
|
tokens = new Token<?>[] { token };
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user