Browse Source

Fix flink sql cannot run due to missing main jar (#12705) (#12800)

Co-authored-by: Wenjun Ruan <wenjun@apache.org>
3.0.2-release
Eric Gao 2 years ago committed by GitHub
parent
commit
206fd003c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-task-plugin/dolphinscheduler-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkTask.java

6
dolphinscheduler-task-plugin/dolphinscheduler-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkTask.java

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

Loading…
Cancel
Save