Open badbye opened 1 year ago
Hello @badbye, Thanks for finding the time to report the issue! We really appreciate the community's efforts to improve Apache Kyuubi.
I'm not sure what happens actually, have a quick look in DriverManager
, it may be something wrong about classloader, please try the following approach to explicitly request DriverManager
to load MySQL driver
spark.driver.extraJavaOptions=-Djdbc.drivers=com.mysql.jdbc.Diriver
@pan3793 Thanks for your quick reply. It does not work.
I am also very confused. From what I have observed, the response time from execution to error is very fast. When the second execution is successful, it is slower, taking around 1 second or more. When using Spark alone, the first execution of "show table" takes around 2-3 seconds. Perhaps there are some delay loading mechanisms that are not effective during the first execution?
No suspicious clue found, need more time to investigate.
@badbye how to add mysql driver to spark? Add it to the spark's jars directory?
@badbye how to add mysql driver to spark? Add it to the spark's jars directory?
Yes. All dependencies are saved in $SPARK_HOME/jars.
Code of Conduct
Search before asking
Describe the bug
Spark and Iceberg work well. After adding Kyuubi, the first "show tables" command always throw an error
org.apache.iceberg.jdbc.UncheckedSQLException: Failed to connect: jdbc:mysql: xxx Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql: xxx
.Whenever I create a new connection and try to read Catalog information for the first time, this error appears. When I try to read again within the same connection, the information is returned successfully. I have retried multiple times, and this problem consistently appears. Additionally, when I use Spark alone without Kyuubi, this problem does not occur.
Affects Version(s)
1.6.1
Kyuubi Server Log Output
Kyuubi Engine Log Output
Kyuubi Server Configurations
Kyuubi Engine Configurations
No response
Additional context
No response
Are you willing to submit PR?