-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-3607] Support backend switch in HoodieFlinkStreamer #5032
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
Conversation
hudi-flink/src/main/java/org/apache/hudi/util/FlinkStateBackendConverter.java
Outdated
Show resolved
Hide resolved
wangxianghu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @liufangqi, thanks for your contribution, this patch LGTM overall
left two minor comments you can consider
hudi-flink/src/main/java/org/apache/hudi/streamer/FlinkStreamerConfig.java
Outdated
Show resolved
Hide resolved
1. change the msg
|
@wangxianghu THX for your review. I think it's a good advice for the description and the exception msg. Updated the code in the new commit. Could you help to review it again when you are free? |
wangxianghu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* [HUDI-3607] Support backend switch in HoodieFlinkStreamer * [HUDI-3607] Support backend switch in HoodieFlinkStreamer 1. checkstyle fix * [HUDI-3607] Support backend switch in HoodieFlinkStreamer 1. change the msg
* [HUDI-3607] Support backend switch in HoodieFlinkStreamer * [HUDI-3607] Support backend switch in HoodieFlinkStreamer 1. checkstyle fix * [HUDI-3607] Support backend switch in HoodieFlinkStreamer 1. change the msg
Tips
What is the purpose of the pull request
Now, HoodieFlinkStreamer utility only support one backend - FsStateBackend.
I think it's not flexible for the application configuration. Could we make backend configurable?
Moreover, for flink version 1.14, FsStateBackend is deprecated in favor of org.apache.flink.runtime.state.hashmap.HashMapStateBackend and org.apache.flink.runtime.state.storage.FileSystemCheckpointStorage.
Brief change log
(for example:)
Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.