Browse Source

[improve-#13678] add filter in method of ``` setMainJarName ``` (#13748)

Co-authored-by: fuchanghai <‘2875334588@qq.com’>
3.1.5-release
fuchanghai 2 years ago committed by GitHub
parent
commit
71a2d38a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-task-plugin/dolphinscheduler-task-flink-stream/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java

4
dolphinscheduler-task-plugin/dolphinscheduler-task-flink-stream/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java

@ -82,6 +82,10 @@ public class FlinkStreamTask extends FlinkTask implements StreamTask {
@Override
protected void setMainJarName() {
if (flinkParameters.getProgramType() == ProgramType.SQL) {
logger.info("The current flink stream job type is SQL, will no need to set main jar");
return;
}
ResourceInfo mainJar = flinkParameters.getMainJar();
String resourceName = getResourceNameOfMainJar(mainJar);
mainJar.setRes(resourceName);

Loading…
Cancel
Save