StephenOTT opened a new issue, #7051: URL: https://github.com/apache/kyuubi/issues/7051
### 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. ### Describe the bug Using https://kyuubi.readthedocs.io/en/master/client/jdbc/kyuubi_jdbc.html#hiveserver2-compatibility with ``` <dependency> <groupId>org.apache.kyuubi</groupId> <artifactId>kyuubi-hive-jdbc-shaded</artifactId> <version>1.10.1</version> </dependency> ``` If you use a url such as `jdbc:hive2://some_url:1234/my_db;transportMode=http;ssl=true;httpPath=/some_path` and you provide credentials using user/password props as part of the lib, then you get a Class Not Found exception when trying to creation a connection. The error traces back to: https://github.com/apache/kyuubi/blob/master/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/KyuubiConnection.java#L566-L567 Which says essentially: If there is ssl=true then look for the password in the `trustStorePassword` arg. But then we can see in the getPassword method: https://github.com/apache/kyuubi/blob/master/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/Utils.java#L665-L668 If the password was null / not found in the `trustStorePassword` arg / the arg did not exist, then try to create the HadoopConfiguration class instance. But this class is NOT part of the `kyuubi-hive-jdbc-shaded` jar. And thus we get an error. Current Workaround: If you add a arg into the JDBC url such as `trustStorePassword=fake_value` then the connection is successful and no issues. ### Affects Version(s) JDBC Shaded 1.10.1 ### Kyuubi Server Log Output ```logtalk ``` ### Kyuubi Engine Log Output ```logtalk ``` ### Kyuubi Server Configurations ```yaml ``` ### Kyuubi Engine Configurations ```yaml ``` ### Additional context _No response_ ### Are you willing to submit PR? - [x] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix. - [ ] 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]
