incubator-streampark icon indicating copy to clipboard operation
incubator-streampark copied to clipboard

[Bug][console]MySQL datasource cannot be used normally

Open shangeyao opened this issue 2 years ago • 1 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

java.lang.IllegalStateException: Cannot load driver class: com.mysql.cj.jdbc.Driver

StreamPark Version

1.2.4

Java Version

1.8.0_345

Flink Version

1.15.2

Scala Version of Flink

2.12

Error Exception

java.lang.IllegalStateException: Cannot load driver class: com.mysql.cj.jdbc.Driver

Screenshots

No response

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

shangeyao avatar Oct 09 '22 07:10 shangeyao

Hi @shangeyao, thanks for you feedback. The license of mysql dependency is an category-x[1], which is not expected by the asf-project. If you want to use mysql as the database, you can place the mysql driver under the lib.

[1] https://apache.org/legal/resolved.html#category-x

lvshaokang avatar Oct 09 '22 08:10 lvshaokang