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

[Hotfix][Connector-V2][Jdbc] Flink engine, source is LocalFile, sink … #6990

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

luoyongsir
Copy link

@luoyongsir luoyongsir commented Jun 14, 2024

…is jdbc, get "No suitable driver" Exception fix (#6902)

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@Carl-Zhou-CN
Copy link
Member

Could you investigate why the LocalFile is behaving in such a peculiar manner?

@@ -92,6 +92,7 @@ public MultiTableResourceManager<ConnectionPoolManager> initMultiTableResourceMa
ds.setPassword(jdbcSinkConfig.getJdbcConnectionConfig().getPassword().get());
}
ds.setAutoCommit(jdbcSinkConfig.getJdbcConnectionConfig().isAutoCommit());
ds.setDriverClassName(jdbcSinkConfig.getJdbcConnectionConfig().getDriverName());
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need this part? Because flink e2e work fine without this change. (E2E use same logic to submit job)

Copy link
Author

@luoyongsir luoyongsir Jun 21, 2024

Choose a reason for hiding this comment

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

微信图片_20240621171135
微信图片_20240621171149

When I debug into DriverDataSource init,if the driverClassName is not null it worked fine. Please look the issues (#6902)

Copy link
Member

@Hisoka-X Hisoka-X Jun 26, 2024

Choose a reason for hiding this comment

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

Do you use flink with standalone mode?

Copy link
Author

@luoyongsir luoyongsir Jun 27, 2024

Choose a reason for hiding this comment

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

Yes, the version is 1.16.1

Copy link
Member

Choose a reason for hiding this comment

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

If you use flink standalone mode, I suggest putting the driver under flink/libs, otherwise flink may have the risk of memory leaks.

@luoyongsir luoyongsir requested a review from Hisoka-X June 25, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time contributor First-time contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants