This is an automated email from the ASF dual-hosted git repository.
feiwang pushed a commit to branch branch-1.7
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/branch-1.7 by this push:
new 044fc5178 [KYUUBI #4652][FOLLOWUP] Fix JaasConfiguration
ClassNotFoundException for Hadoop 3.3.4 and previous
044fc5178 is described below
commit 044fc51789501f856ab66177ea93d05ff8d600cb
Author: fwang12 <[email protected]>
AuthorDate: Tue Apr 25 11:31:55 2023 +0800
[KYUUBI #4652][FOLLOWUP] Fix JaasConfiguration ClassNotFoundException for
Hadoop 3.3.4 and previous
### _Why are the changes needed?_
JaasConfiguration is a static class.
Before:
<img width="1151" alt="image"
src="https://user-images.githubusercontent.com/6757692/234147288-d1251e5b-7c23-4746-80fb-335945c408c7.png">
After:
<img width="1189" alt="image"
src="https://user-images.githubusercontent.com/6757692/234147251-e0007ac8-bb9e-49a5-95eb-3ea0b9671996.png">
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [x] Add screenshots for manual tests if appropriate
- [x] [Run
test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests)
locally before make a pull request
Closes #4765 from turboFei/zk_not_found.
Closes #4652
77dceb2bc [fwang12] fix class not found issue
Authored-by: fwang12 <[email protected]>
Signed-off-by: fwang12 <[email protected]>
(cherry picked from commit f3c037d6f37a3538b0031b329401cbf38859cc47)
Signed-off-by: fwang12 <[email protected]>
---
.../org/apache/kyuubi/ha/client/zookeeper/ZookeeperClientProvider.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client/zookeeper/ZookeeperClientProvider.scala
b/kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client/zookeeper/ZookeeperClientProvider.scala
index b7297d969..806aff95f 100644
---
a/kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client/zookeeper/ZookeeperClientProvider.scala
+++
b/kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client/zookeeper/ZookeeperClientProvider.scala
@@ -118,7 +118,7 @@ object ZookeeperClientProvider extends Logging {
classOf[String])
.impl( // Hadoop 3.3.4 and previous
// scalastyle:off
-
"org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager.JaasConfiguration",
+
"org.apache.hadoop.security.token.delegation.ZKDelegationTokenSecretManager$JaasConfiguration",
// scalastyle:on
classOf[String],
classOf[String],