Unverified Commit f54fd772 authored by luoshangjie's avatar luoshangjie Committed by GitHub

[Fix] Fix the issue of ineffective cluster configuration parameters for…

[Fix] Fix the issue of ineffective cluster configuration parameters for submitting Flink Jar tasks in Per-Job mode (#3607) Co-authored-by: 's avatarluoshangjie <luoshangjie@yfpharmacy.com> Co-authored-by: 's avatar18216499322 <18216499322@users.noreply.github.com>
parent 779c4857
...@@ -213,6 +213,12 @@ public class JobConfig { ...@@ -213,6 +213,12 @@ public class JobConfig {
} }
public ExecutorConfig getExecutorSetting() { public ExecutorConfig getExecutorSetting() {
Map<String, String> config = new HashMap<>(32);
if (GatewayType.isDeployCluster(type) && gatewayConfig != null && gatewayConfig.getFlinkConfig() != null) {
config.putAll(gatewayConfig.getFlinkConfig().getConfiguration());
} else {
config.putAll(configJson);
}
return ExecutorConfig.build( return ExecutorConfig.build(
type, type,
address, address,
...@@ -223,7 +229,7 @@ public class JobConfig { ...@@ -223,7 +229,7 @@ public class JobConfig {
batchModel, batchModel,
savePointPath, savePointPath,
jobName, jobName,
configJson, config,
variables); variables);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment