Unverified Commit 3524cdb2 authored by aiwenmo's avatar aiwenmo Committed by GitHub

[Fix]batch execution with yarn-app mode using the useBatchModel param…

[Fix]batch execution with yarn-app mode using the useBatchModel param…
parents 22442f32 84c701a4
...@@ -41,7 +41,7 @@ public class Submiter { ...@@ -41,7 +41,7 @@ public class Submiter {
} }
return "select id, name, alias as jobName, type,check_point as checkpoint," + return "select id, name, alias as jobName, type,check_point as checkpoint," +
"save_point_path as savePointPath, parallelism,fragment as useSqlFragment,statement_set as useStatementSet,config_json as config," + "save_point_path as savePointPath, parallelism,fragment as useSqlFragment,statement_set as useStatementSet,config_json as config," +
" env_id as envId from dlink_task where id = " + id; " env_id as envId,batch_model AS useBatchModel from dlink_task where id = " + id;
} }
private static String getFlinkSQLStatement(Integer id, DBConfig config) { private static String getFlinkSQLStatement(Integer id, DBConfig config) {
......
...@@ -18,7 +18,7 @@ public class AppBatchExecutor extends Executor { ...@@ -18,7 +18,7 @@ public class AppBatchExecutor extends Executor {
this.executorSetting = executorSetting; this.executorSetting = executorSetting;
if (Asserts.isNotNull(executorSetting.getConfig())) { if (Asserts.isNotNull(executorSetting.getConfig())) {
Configuration configuration = Configuration.fromMap(executorSetting.getConfig()); Configuration configuration = Configuration.fromMap(executorSetting.getConfig());
this.environment = StreamExecutionEnvironment.createLocalEnvironment(configuration); this.environment = StreamExecutionEnvironment.getExecutionEnvironment(configuration);
} else { } else {
this.environment = StreamExecutionEnvironment.createLocalEnvironment(); this.environment = StreamExecutionEnvironment.createLocalEnvironment();
} }
......
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