HADOOP-12559. KMS connection failures should trigger TGT renewal. Contributed by Zhe Zhang.

This commit is contained in:
Xiaoyu Yao 2015-12-28 10:41:26 -08:00
parent a0249da8a7
commit 993311e547
2 changed files with 5 additions and 0 deletions

View File

@ -1532,6 +1532,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12681. start-build-env.sh fails in branch-2.
(Kengo Seki via aajisaka)
HADOOP-12559. KMS connection failures should trigger TGT renewal.
(Zhe Zhang via xyao)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -474,6 +474,8 @@ public class KMSClientProvider extends KeyProvider implements CryptoExtension,
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