mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
Fix flink sql cannot run due to missing main jar (#12705)
This commit is contained in:
parent
7d0e2cbbb9
commit
2c3cc31a4c
@ -85,10 +85,16 @@ public class FlinkTask extends AbstractYarnTask {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setMainJarName() {
|
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();
|
ResourceInfo mainJar = flinkParameters.getMainJar();
|
||||||
String resourceName = getResourceNameOfMainJar(mainJar);
|
String resourceName = getResourceNameOfMainJar(mainJar);
|
||||||
mainJar.setRes(resourceName);
|
mainJar.setRes(resourceName);
|
||||||
flinkParameters.setMainJar(mainJar);
|
flinkParameters.setMainJar(mainJar);
|
||||||
|
logger.info("Success set flink jar: {}", resourceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user