Skip to content

[#7309] fix(docker): Fix jdbc driver in Gravitino docker image.#7948

Merged
jerryshao merged 1 commit intoapache:mainfrom
yuqi1129:issue_7309
Aug 7, 2025
Merged

[#7309] fix(docker): Fix jdbc driver in Gravitino docker image.#7948
jerryshao merged 1 commit intoapache:mainfrom
yuqi1129:issue_7309

Conversation

@yuqi1129
Copy link
Contributor

@yuqi1129 yuqi1129 commented Aug 6, 2025

What changes were proposed in this pull request?

Add mysql-connector-java-8.0.27.jar to starrocks/libs, jdbc-starrocks/libs and jdbc-oceanbase/libs/.

Why are the changes needed?

It's a bug.

Fix: #7309

Does this PR introduce any user-facing change?

N/A.

How was this patch tested?

Existing tests.

cp "${gravitino_staging_dir}/${mysql_driver}" "${gravitino_package_dir}/catalogs/jdbc-mysql/libs/"
cp "${gravitino_staging_dir}/${mysql_driver}" "${gravitino_package_dir}/catalogs/jdbc-doris/libs/"
cp "${gravitino_staging_dir}/${mysql_driver}" "${gravitino_package_dir}/catalogs/jdbc-starrocks/libs/"
cp "${gravitino_staging_dir}/${mysql_driver}" "${gravitino_package_dir}/catalogs/jdbc-oceanbase/libs/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should also update docker-image-details.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily。 As usual, we'll be posting a new mirror with each release and the message will be similar as the follow:

- apache/gravitino:0.9.1
- Based on Gravitino 0.9.1, you can know more information from 0.9.1 [release notes](https://github.com/apache/gravitino/releases/tag/v0.9.1).
- apache/gravitino:0.9.0-incubating
- Based on Gravitino 0.9.0-incubating, you can know more information from 0.9.0-incubating [release notes](https://github.com/apache/gravitino/releases/tag/v0.9.0-incubating).
- apache/gravitino:0.8.0-incubating
- Based on Gravitino 0.8.0-incubating, you can know more information from 0.8.0-incubating [release notes](https://github.com/apache/gravitino/releases/tag/v0.8.0-incubating).
- apache/gravitino:0.7.0-incubating
- Based on Gravitino 0.7.0-incubating, you can know more information from 0.7.0-incubating [release notes](https://github.com/apache/gravitino/releases/tag/v0.7.0-incubating).
- Place bundle jars (gravitino-aws-bundle.jar, gravitino-gcp-bundle.jar, gravitino-aliyun-bundle.jar) in the `${GRAVITINO_HOME}/catalogs/hadoop/libs` folder to support the cloud storage catalog without manually adding the jars to the classpath.
- apache/gravitino:0.6.1-incubating
- Based on Gravitino 0.6.1-incubating, you can know more information from 0.6.1-incubating release notes.
- apache/gravitino:0.6.0-incubating (Switch to Apache official DockerHub repository)
- Use the latest Gravitino version 0.6.0-incubating source code to build the image.
- datastrato/gravitino:0.5.1

@jerryshao jerryshao merged commit 38c0103 into apache:main Aug 7, 2025
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug report] Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

3 participants