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

[Bug] [Flink] java.lang.ClassNotFoundException: com.mysql.jdbc.Driver #3863

Closed
2 of 3 tasks
FakeTrader opened this issue Oct 9, 2024 · 1 comment
Closed
2 of 3 tasks
Labels
Bug Something isn't working Waiting for reply Waiting for reply

Comments

@FakeTrader
Copy link

FakeTrader commented Oct 9, 2024

Search before asking

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

What happened

YARN Application 模式运行失败(YARN Session 模式可以运行)。

已在 dinky/extends/ 放置 mysql-connector-j-8.0.33.jar,未找到的类是 com.mysql.jdbc.Driver,同时放置了 mysql-connector-java-5.1.49.jar

日志:
mgigEGg6.txt

image

What you expected to happen

正常运行

How to reproduce

使用 YARN Application 模式运行

--创建源表datagen_source
CREATE TABLE datagen_source(
  id  BIGINT,
  name STRING
) WITH (
  'connector' = 'datagen'
);
--创建结果表blackhole_sink
CREATE TABLE blackhole_sink(
   id  BIGINT,
   name STRING
) WITH (
  'connector' = 'blackhole'
);
--将源表数据插入到结果表
INSERT INTO blackhole_sink
SELECT
   id  ,
   name 
from datagen_source;

Anything else

No response

Version

1.1.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@FakeTrader FakeTrader added Bug Something isn't working Waiting for reply Waiting for reply labels Oct 9, 2024
@Zzm0809
Copy link
Contributor

Zzm0809 commented Oct 10, 2024

hdfs 的 flink/lib 下放一份, 这是基操

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Waiting for reply Waiting for reply
Projects
None yet
Development

No branches or pull requests

2 participants