فهرست منبع

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

Xiaoyu Yao 9 سال پیش
والد
کامیت
993311e547

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -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

+ 2 - 0
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/KMSClientProvider.java

@@ -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