HADOOP-17610. DelegationTokenAuthenticator prints token information. Contributed by Ravuri Sushma sree.
(cherry picked from commit 478402cc74
)
This commit is contained in:
parent
62937d15bb
commit
c60e81b5a8
|
@ -138,8 +138,8 @@ public abstract class DelegationTokenAuthenticator implements Authenticator {
|
||||||
try {
|
try {
|
||||||
// check and renew TGT to handle potential expiration
|
// check and renew TGT to handle potential expiration
|
||||||
UserGroupInformation.getCurrentUser().checkTGTAndReloginFromKeytab();
|
UserGroupInformation.getCurrentUser().checkTGTAndReloginFromKeytab();
|
||||||
LOG.debug("No delegation token found for url={}, token={}, "
|
LOG.debug("No delegation token found for url={}, "
|
||||||
+ "authenticating with {}", url, token, authenticator.getClass());
|
+ "authenticating with {}", url, authenticator.getClass());
|
||||||
authenticator.authenticate(url, token);
|
authenticator.authenticate(url, token);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
throw NetUtils.wrapException(url.getHost(), url.getPort(),
|
throw NetUtils.wrapException(url.getHost(), url.getPort(),
|
||||||
|
|
Loading…
Reference in New Issue