Browse Source

[Improvement] [Task] Change Seatunnel task run-mode to deploy-mode (#14800)

zhangbaipeng 1 year ago
parent
commit
7640c29495

+ 12 - 2
docs/docs/en/guide/task/seatunnel.md

@@ -26,11 +26,15 @@ Click [here](https://seatunnel.apache.org/) for more information about `Apache S
 - SEATUNNEL_ENGINE
 - Deployment mode: specify the deployment mode, `cluster` `local`
 
-          > Click [here](https://seatunnel.apache.org/docs/2.1.2/command/usage) for more information on the usage of `Apache SeaTunnel command`
+          > Click [here](https://seatunnel.apache.org/docs/2.3.3/command/usage) for more information on the usage of 
+
+`Apache SeaTunnel command`
 
 - Custom Configuration: Supports custom configuration or select configuration file from Resource Center
 
-  > Click [here](https://seatunnel.apache.org/docs/2.1.2/concept/config) for more information about `Apache SeaTunnel config` file
+  > Click [here](https://seatunnel.apache.org/docs/2.3.3/concept/config) for more information about `Apache
+  >
+  >> SeaTunnel config` file
 
 - Script: Customize configuration information on the task node, including four parts: `env` `source` `transform` `sink`
 
@@ -77,3 +81,9 @@ sink {
 
 ```
 
+### Support SeaTunnel Version
+
+- v2.3.1
+- v2.3.2
+- v2.3.3
+

+ 8 - 2
docs/docs/zh/guide/task/seatunnel.md

@@ -26,11 +26,11 @@
 - SEATUNNEL_ENGINE
 - 部署方式:指定部署模式,`cluster` `local`
 
-          > 点击 [这里](https://seatunnel.apache.org/docs/2.1.2/command/usage) 获取更多关于`Apache SeaTunnel command` 使用的信息
+          > 点击 [这里](https://seatunnel.apache.org/docs/2.3.3/command/usage) 获取更多关于`Apache SeaTunnel command` 使用的信息
 
 - 自定义配置:支持自定义配置或从资源中心选择配置文件
 
-  > 点击 [这里](https://seatunnel.apache.org/docs/2.1.2/concept/config) 获取更多关于`Apache SeaTunnel config` 文件介绍
+  > 点击 [这里](https://seatunnel.apache.org/docs/2.3.3/concept/config) 获取更多关于`Apache SeaTunnel config` 文件介绍
 
 - 脚本:在任务节点那自定义配置信息,包括四部分:`env` `source` `transform` `sink`
 
@@ -77,3 +77,9 @@ sink {
 
 ```
 
+### 支持 SeaTunnel 版本
+
+- 2.3.1
+- 2.3.2
+- 2.3.3
+

+ 2 - 2
dolphinscheduler-task-plugin/dolphinscheduler-task-seatunnel/src/main/java/org/apache/dolphinscheduler/plugin/task/seatunnel/flink/SeatunnelFlinkParameters.java

@@ -36,8 +36,8 @@ public class SeatunnelFlinkParameters extends SeatunnelParameters {
     public enum RunModeEnum {
 
         NONE("none"),
-        RUN("--run-mode run"),
-        RUN_APPLICATION("--run-mode run-application");
+        RUN("--deploy-mode run"),
+        RUN_APPLICATION("--deploy-mode run-application");
 
         private final String command;