cxzl25 opened a new issue, #5226: URL: https://github.com/apache/kyuubi/issues/5226
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues. ### What would you like to be improved? Because Kyuubi supports the configuration of multiple authentication methods, we can enable both KERBEROS or LDAP. ```properties kyuubi.authentication KERBEROS,LDAP kyuubi.ha.zookeeper.publish.configs true ``` After turning on `kyuubi.ha.zookeeper.publish.configs`, all authentication methods will be published to znode. https://github.com/apache/kyuubi/blob/a01d7092eaacbbf1dbb11d421ba3746073b5b586/kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/client/zookeeper/ZookeeperDiscoveryClient.scala#L330-L331 ```bash [zk: localhost:2181(CONNECTED) 0] get /kyuubi/serviceUri=127.0.0.1:10009;version=1.7.1;sequence=0000000000 ``` ``` hive.server2.thrift.sasl.qop=auth;hive.server2.thrift.bind.host=127.0.0.1;hive.server2.transport.mode=binary;hive.server2.authentication=KERBEROS,LDAP;hive.server2.thrift.port=10009 ``` However, if you use Hive JDBC or Kyuubi JDBC neither of them support resolving multiple authentication methods from znode. https://github.com/apache/kyuubi/blob/a01d7092eaacbbf1dbb11d421ba3746073b5b586/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/ZooKeeperHiveClientHelper.java#L197-L216 https://github.com/apache/hive/blob/156905fcd588c99f596eb96a0932068df5007000/jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java#L351-L368 ### How should we improve? _No response_ ### Are you willing to submit PR? - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve. - [ ] No. I cannot submit a PR at this time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
