[Fix-16617][Seatunnel] Use master option for engine deploy mode#18315
[Fix-16617][Seatunnel] Use master option for engine deploy mode#18315JinRudy wants to merge 1 commit into
Conversation
|
Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md) |
| public List<String> buildOptions() throws Exception { | ||
| List<String> args = super.buildOptions(); | ||
| if (!Objects.isNull(seatunnelParameters.getDeployMode())) { | ||
| args.add(Constants.DEPLOY_MODE_OPTIONS); |
There was a problem hiding this comment.
You should remove Constants.DEPLOY_MODE_OPTIONS since it's useless.
There was a problem hiding this comment.
Addressed in 935c4b6 by removing Constants.DEPLOY_MODE_OPTIONS and inlining the Spark task --deploy-mode argument to preserve the existing Spark command behavior.
There was a problem hiding this comment.
You remove the usage of Constants.DEPLOY_MODE_OPTIONS. But it didn't modify its test and remove this constant.
SbloodyS
left a comment
There was a problem hiding this comment.
Please using english in commit messages.
| public List<String> buildOptions() throws Exception { | ||
| List<String> args = super.buildOptions(); | ||
| args.add(DEPLOY_MODE_OPTIONS); | ||
| args.add("--deploy-mode"); |
There was a problem hiding this comment.
Please remove the related tests.
There was a problem hiding this comment.
Updated, thanks. I removed the test change and rewrote the branch with a single English commit.
There was a problem hiding this comment.
Updated. I reverted the Spark/constant cleanup and kept this scoped to the SeaTunnel engine path; the PR now changes only SeatunnelEngineTask.
There was a problem hiding this comment.
You also need to fix the related tests.
|
4152d48 to
adbc2d8
Compare
3b89bd5 to
634a73f
Compare
634a73f to
cf1d21d
Compare
|
Hi @SbloodyS, thanks for the follow-up. I added
I also rebased the branch onto the latest Local verification: Please take another look when you have a chance. |


Was this PR generated or assisted by AI?
YES. OpenAI Codex assisted with the change and verification.
Purpose of the pull request
Close #16617.
SeaTunnel 2.3.7 still uses
--deploy-modefor the Spark and Flink starters. The deprecation warning reported in the issue comes from theseatunnel.shclient path, where-e/--deploy-modeis deprecated in favor of-m/--master.This PR keeps the change scoped to the SeaTunnel engine task command generated for
seatunnel.sh.Brief change log
--masterfor the SeaTunnel engine task deploy mode argument.Verify this pull request
git diff --checkJAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/bin:$PATH ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel -am -Dtest=SeatunnelTaskTest,SeatunnelParametersTest -Dsurefire.failIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false -Dspotless.skip=true -Danalyze.skip=true -Djacoco.skip=true -DskipDepCheck=true testJAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/bin:$PATH ./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel -DskipTests -Djacoco.skip=true -DskipDepCheck=true spotless:checkPull Request Notice
This pull request does not contain incompatible changes.