mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 03:37:46 +08:00
[Fix][Flink] Fix flink -yn option missing after upgrading (#4682)
This commit is contained in:
parent
6e713a3832
commit
b3bb84631e
@ -64,9 +64,9 @@ public class FlinkArgsUtils {
|
||||
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();
|
||||
if (FLINK_VERSION_BEFORE_1_10.equals(flinkVersion)) {
|
||||
if (flinkVersion == null || FLINK_VERSION_BEFORE_1_10.equals(flinkVersion)) {
|
||||
int taskManager = param.getTaskManager();
|
||||
if (taskManager != 0) { //-yn
|
||||
args.add(Constants.FLINK_TASK_MANAGE);
|
||||
|
Loading…
Reference in New Issue
Block a user