소스 검색

HADOOP-16019. ZKDelegationTokenSecretManager won't log exception message occured in function setJaasConfiguration.

Contributed by luhuachao.

(cherry picked from commit ccc43621aba4f1fc9ca880e294a66862493805b0)
luhuachao 6 년 전
부모
커밋
18becec548

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java

@@ -204,7 +204,7 @@ public abstract class ZKDelegationTokenSecretManager<TokenIdent extends Abstract
                 .retryPolicy(
                     new RetryNTimes(numRetries, sessionT / numRetries));
       } catch (Exception ex) {
-        throw new RuntimeException("Could not Load ZK acls or auth");
+        throw new RuntimeException("Could not Load ZK acls or auth: " + ex, ex);
       }
       zkClient = builder.ensembleProvider(new FixedEnsembleProvider(connString))
           .build();