HADOOP-12559. KMS connection failures should trigger TGT renewal. Contributed by Zhe Zhang.
This commit is contained in:
parent
a0249da8a7
commit
993311e547
@ -1532,6 +1532,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
HADOOP-12681. start-build-env.sh fails in branch-2.
|
HADOOP-12681. start-build-env.sh fails in branch-2.
|
||||||
(Kengo Seki via aajisaka)
|
(Kengo Seki via aajisaka)
|
||||||
|
|
||||||
|
HADOOP-12559. KMS connection failures should trigger TGT renewal.
|
||||||
|
(Zhe Zhang via xyao)
|
||||||
|
|
||||||
Release 2.7.3 - UNRELEASED
|
Release 2.7.3 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -474,6 +474,8 @@ public class KMSClientProvider extends KeyProvider implements CryptoExtension,
|
|||||||
UserGroupInformation.AuthenticationMethod.PROXY)
|
UserGroupInformation.AuthenticationMethod.PROXY)
|
||||||
? currentUgi.getShortUserName() : null;
|
? currentUgi.getShortUserName() : null;
|
||||||
|
|
||||||
|
// check and renew TGT to handle potential expiration
|
||||||
|
actualUgi.checkTGTAndReloginFromKeytab();
|
||||||
// creating the HTTP connection using the current UGI at constructor time
|
// creating the HTTP connection using the current UGI at constructor time
|
||||||
conn = actualUgi.doAs(new PrivilegedExceptionAction<HttpURLConnection>() {
|
conn = actualUgi.doAs(new PrivilegedExceptionAction<HttpURLConnection>() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user