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 #6673

Conversation

github-actions[bot]
Copy link

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

…iver found for mysql:xx` error (#6621)

### 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
@jerryshao jerryshao merged commit 92600c6 into branch-0.8 Mar 11, 2025
26 checks passed
@jerryshao jerryshao deleted the cherry-pick-branch-0.8-78c0114ab7eb2eb97d85ae5f54b5774a01185a26 branch March 11, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants