-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[feature][task-flink] Support Flink application mode #9577
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #9577 +/- ##
============================================
+ Coverage 39.98% 40.11% +0.12%
- Complexity 4432 4489 +57
============================================
Files 831 836 +5
Lines 33314 33553 +239
Branches 3677 3708 +31
============================================
+ Hits 13320 13459 +139
- Misses 18766 18839 +73
- Partials 1228 1255 +27
Continue to review full report at Codecov.
|
I think your describe see issue |
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue
Outdated
Show resolved
Hide resolved
The docs were updated in fff3d69 |
...-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkDeployMode.java
Show resolved
Hide resolved
docs/docs/en/guide/task/flink.md
Outdated
@@ -24,7 +24,7 @@ Flink task type for executing Flink programs. For Flink nodes, the worker submit | |||
- **Program type**: Supports Java, Scala and Python. | |||
- **The class of main function**: The **full path** of Main Class, the entry point of the Flink program. | |||
- **Main jar package**: The jar package of the Flink program (upload by Resource Center). | |||
- **Deployment mode**: Support 2 deployment modes: cluster and local. | |||
- **Deployment mode**: Support 3 deployment modes: cluster, local and application. |
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 is better to add an example about how to using flink in application
mode
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.
Er.. The only difference is the run command. Should I add some explaination for those 3 modes or simply add a reference link to Flink official website?
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.
I think adding some links to FL website is better, but please use the fix version docs and avoid using latest
or stale
url
0dd6bd7
to
784a0ca
Compare
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.
The backend part LGTM. Thanks for your contribution.
BTW, document change LGTM, we should ask @songjianet to see the frontend change after you solve the conflict |
Hi @zhongjiajie , |
Hi @SbloodyS and @zhongjiajie , |
Feel free to ping us when you are ready to review. ^_^ |
Hi @SbloodyS , |
Hi @SbloodyS , |
() => { | ||
model.deployMode = 'cluster' | ||
} | ||
) |
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.
There will be a bug here after setting deployMode to application and flinkVersion to 1.11.
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 @Amy0104 ,
I updated use-flink.ts. Now deploy mode will reset to 'cluster' only when flink version is '<1.10' and deploy mode is 'application'.
@SbloodyS , |
Hi @SbloodyS , |
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.
Backend part LGTM
Hi @paul8263 please take a look of the security hotspots. |
Hi @caishunfeng , |
Hi @SbloodyS , Please remind all the reviewers to go over this PR. I am afraid if it was left untouched for a long time, it might diverge greatly from the dev branch. Solving the conflict might be time-consuming. If there are some places that need to change, please let me know. Thank you very much. |
@caishunfeng @zhongjiajie @Amy0104 @songjianet @zhuangchong Cound you guys spare some time to take a look at this PR? This PR has been over for 2 months. |
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 overall
Kudos, SonarCloud Quality Gate passed! |
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.
The front end part LGTM.
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.
+1
Purpose of the pull request
Added feature that enables Flink to submit jobs in application mode.
This pr will close #9416
Brief change log
Verify this pull request
This change added tests and can be verified as follows:
Added test for dolphinscheduler-task-plugin/dolphinscheduler-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkArgsUtils.java