From ccc43621aba4f1fc9ca880e294a66862493805b0 Mon Sep 17 00:00:00 2001 From: luhuachao Date: Tue, 15 Jan 2019 13:15:18 +0000 Subject: [PATCH] HADOOP-16019. ZKDelegationTokenSecretManager won't log exception message occured in function setJaasConfiguration. Contributed by luhuachao. --- .../token/delegation/ZKDelegationTokenSecretManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java index 88bd29bd73..dca9e2f915 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java @@ -204,7 +204,7 @@ public ZKDelegationTokenSecretManager(Configuration conf) { .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();