HADOOP-12559. KMS connection failures should trigger TGT renewal. Contributed by Zhe Zhang.
Conflicts: hadoop-common-project/hadoop-common/CHANGES.txt
This commit is contained in:
parent
f0c278469b
commit
c6f68a7f98
@ -474,6 +474,8 @@ private HttpURLConnection createConnection(final URL url, String method)
|
||||
UserGroupInformation.AuthenticationMethod.PROXY)
|
||||
? currentUgi.getShortUserName() : null;
|
||||
|
||||
// check and renew TGT to handle potential expiration
|
||||
actualUgi.checkTGTAndReloginFromKeytab();
|
||||
// creating the HTTP connection using the current UGI at constructor time
|
||||
conn = actualUgi.doAs(new PrivilegedExceptionAction<HttpURLConnection>() {
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user