Skip to content

Commit

Permalink
Fix remote task submission could not find the jar
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengJie1053 committed Aug 24, 2023
1 parent 32cb491 commit dcfe3ac
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,14 @@ private void checkBuildEnv(Long appId, boolean forceBuild) {
private BuildPipeline createPipelineInstance(@Nonnull Application app) {
FlinkEnv flinkEnv = flinkEnvService.getByIdOrDefault(app.getVersionId());
String flinkUserJar = retrieveFlinkUserJar(flinkEnv, app);

if (!new File(flinkUserJar).exists()) {
Resource resource = resourceService.findByResourceName(app.getTeamId(), app.getJar());
if (resource != null && StringUtils.isNotBlank(resource.getFilePath())) {
flinkUserJar = resource.getFilePath();
}
}

ExecutionMode executionMode = app.getExecutionModeEnum();
String mainClass = ConfigConst.STREAMPARK_FLINKSQL_CLIENT_CLASS();
switch (executionMode) {
Expand Down

0 comments on commit dcfe3ac

Please sign in to comment.