HADOOP-12559. KMS connection failures should trigger TGT renewal. Contributed by Zhe Zhang.
(cherry picked from commit 993311e547
)
This commit is contained in:
parent
c60792e6e5
commit
beec7a2efb
|
@ -886,6 +886,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…
Reference in New Issue