Browse Source

Merge pull request #4681 from chengshiwen/1.3.5-fix-flink-yn

[1.3.5-prepare][Fix][Flink] Fix flink -yn option missing after upgrading
xingchun-chen 4 years ago committed by GitHub
parent
commit
26b2152f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/FlinkArgsUtils.java

4
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/FlinkArgsUtils.java

@ -64,9 +64,9 @@ public class FlinkArgsUtils {
args.add(ArgsUtils.escape(appName)); args.add(ArgsUtils.escape(appName));
} }
// judge flink version,from flink1.10,the parameter -yn removed // judge flink version, the parameter -yn has removed from flink 1.10
String flinkVersion = param.getFlinkVersion(); String flinkVersion = param.getFlinkVersion();
if (FLINK_VERSION_BEFORE_1_10.equals(flinkVersion)) { if (flinkVersion == null || FLINK_VERSION_BEFORE_1_10.equals(flinkVersion)) {
int taskManager = param.getTaskManager(); int taskManager = param.getTaskManager();
if (taskManager != 0) { //-yn if (taskManager != 0) { //-yn
args.add(Constants.FLINK_TASK_MANAGE); args.add(Constants.FLINK_TASK_MANAGE);

Loading…
Cancel
Save