imperio-wxm opened a new issue, #4778: URL: https://github.com/apache/kyuubi/issues/4778
### 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 When `kyuubi.metadata.store.jdbc.database.type=MYSQL` is set, kyuubi-server starts to report an error. ```java Caused by: java.lang.RuntimeException: Failed to load driver class com.mysql.jdbc.Driver in either of HikariConfig class loader or Thread context classloader ``` Log in to the kyuubi-server host to view the dependent jars in the `/opt/kyuubi/jars` directory, and find that the mysql dependency is missing. In the pom.xml file of kyuubi-server, the scope that mysql depends on is test. ```xml <dependency> <groupId>com.mysql</groupId> <artifactId>mysql-connector-j</artifactId> <scope>test</scope> </dependency> ``` And it is known from the parent pom.xml that the mysql jdbc version is `<mysql.jdbc.version>8.0.32</mysql.jdbc.version>`. It is more appropriate to replace `com.mysql.jdbc.Driver` with `com.mysql.cj.jdbc.Driver` ### Affects Version(s) master/1.7.0 ### Kyuubi Server Log Output _No response_ ### Kyuubi Engine Log Output _No response_ ### Kyuubi Server Configurations _No response_ ### Kyuubi Engine Configurations _No response_ ### 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]
