-
Notifications
You must be signed in to change notification settings - Fork 2k
[FLINK-37630] Support flink cdc pipeline Yarn session mode #3989
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
base: master
Are you sure you want to change the base?
Conversation
.../main/java/org/apache/flink/cdc/composer/flink/deployment/YarnSessionDeploymentExecutor.java
Outdated
Show resolved
Hide resolved
Thank you for your contribution. Could you please add the doc for this mode? |
As discuss with @lvyanquan :
|
// If applicationId is passed, we get the state of yarn; if not, we create a session | ||
// cluster. | ||
String applicationId = flinkConfig.get(YarnConfigOptions.APPLICATION_ID); | ||
if (applicationId != null) { |
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.
It seems that we cannot determine whether the application_id does not exist or is a misspelled application_id. If it is a misspelled, a new session cluster will be generated each time it is provided
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.
Maybe we can add a simple validate method.
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, I left some comments. @Mrart
...src/main/java/org/apache/flink/cdc/composer/flink/deployment/AbstractDeploymentExecutor.java
Outdated
Show resolved
Hide resolved
if (flinkConfig.get(PipelineOptions.JARS) == null) { | ||
flinkConfig.set( | ||
PipelineOptions.JARS, Collections.singletonList(getFlinkCDCDistJarFromEnv())); | ||
} |
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.
If "JARS" not null, do we need to add the flink cdc dist into JARS?
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.
As application mode it seem this.
Support flink cdc pipeline Yarn session mode