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

Contributed by luhuachao.
This commit is contained in:
luhuachao 2019-01-15 13:15:18 +00:00 committed by Steve Loughran
parent 614af50625
commit ccc43621ab
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0

View File

@ -204,7 +204,7 @@ public ZKDelegationTokenSecretManager(Configuration conf) {
.retryPolicy( .retryPolicy(
new RetryNTimes(numRetries, sessionT / numRetries)); new RetryNTimes(numRetries, sessionT / numRetries));
} catch (Exception ex) { } 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)) zkClient = builder.ensembleProvider(new FixedEnsembleProvider(connString))
.build(); .build();