Skip to content

Commit 49bd6b9

Browse files
[Bug] The yarn-queue parameter is specified but does not take effect (apache#1330)
* [Bug] The yarn-queue parameter is specified but does not take effect
1 parent de08433 commit 49bd6b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

streamx-console/streamx-console-service/src/main/java/com/streamxhub/streamx/console/core/service/impl/ApplicationServiceImpl.java

+8
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,14 @@ public void start(Application appParam, boolean auto) throws Exception {
11811181
}
11821182

11831183
Map<String, String> dynamicOption = FlinkSubmitter.extractDynamicOptionAsJava(application.getDynamicOptions());
1184+
//设置yarn.application.queue,如果yarn queue和dynamic option都设置了,那么yarn queue优先级较高
1185+
if (ExecutionMode.YARN_APPLICATION.equals(application.getExecutionModeEnum())) {
1186+
if (!application.getHotParamsMap().isEmpty()) {
1187+
if (application.getHotParamsMap().containsKey(ConfigConst.KEY_YARN_APP_QUEUE())) {
1188+
dynamicOption.put(ConfigConst.KEY_YARN_APP_QUEUE(), application.getHotParamsMap().get(ConfigConst.KEY_YARN_APP_QUEUE()).toString());
1189+
}
1190+
}
1191+
}
11841192

11851193
Map<String, Object> extraParameter = new HashMap<>(0);
11861194
extraParameter.put(ConfigConst.KEY_JOB_ID(), application.getId());

0 commit comments

Comments
 (0)