Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6623] fix(spark): Load JDBC driver explictly to fix No suitable driver found for mysql:xx error #6621

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FANNG1
Copy link
Contributor

@FANNG1 FANNG1 commented Mar 6, 2025

What changes were proposed in this pull request?

If user set spark.sql.hive.metastore.jars to path in spark configuration and hive metastore uri is not set explictly, Spark will use Isolated client class loader to load JDBC drivers. which makes Iceberg couldn't load corresponding class loader.

Why are the changes needed?

Fix: #6623

Does this PR introduce any user-facing change?

no

How was this patch tested?

test locally

@FANNG1 FANNG1 changed the title fix comment [#6623] fix(spark): Load JDBC driver explictly to fix No suitable driver found for mysql:xx error Mar 6, 2025
@FANNG1
Copy link
Contributor Author

FANNG1 commented Mar 6, 2025

It's similar to #6432, @jerryshao @yuqi1129 @caican00 PTAL.

@FANNG1 FANNG1 added the branch-0.8 Automatically cherry-pick commit to branch-0.8 label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-0.8 Automatically cherry-pick commit to branch-0.8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report] use spark iceberg catalog error in spark sql client
2 participants