Skip to content

Commit

Permalink
optimize_no_flink_deps_no_start_dinky
Browse files Browse the repository at this point in the history
  • Loading branch information
zackyoungh committed Nov 26, 2024
1 parent 6995769 commit aaf1bb0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package org.dinky.controller;

import cn.hutool.core.lang.Singleton;
import org.dinky.data.model.CheckPointReadTable;
import org.dinky.data.result.Result;
import org.dinky.data.vo.CascaderVO;
Expand All @@ -34,6 +33,7 @@
import org.springframework.web.bind.annotation.RestController;

import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.hutool.core.lang.Singleton;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public Result<FlinkJarSqlConvertVO> flinkJarSqlConvertForm(@RequestBody TaskDTO
}
Integer lastExecuteJarSqlStatementIndex = null;
for (int i = 0; i < statements.length; i++) {
if (ExecuteJarParseStrategyUtil.match(statements[i])) {
if (ExecuteJarParseStrategyUtil.match(statements[i])) {
lastExecuteJarSqlStatementIndex = i;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public class FlinkHistoryServer implements ApplicationRunner {
private final SystemConfiguration systemConfiguration = SystemConfiguration.getInstances();
private final SysConfigService sysConfigService;



public FlinkHistoryServer(JobInstanceService jobInstanceService, SysConfigService sysConfigService) {
this.sysConfigService = sysConfigService;
this.historyRunnable = () -> {
Expand Down
10 changes: 6 additions & 4 deletions dinky-admin/src/main/java/org/dinky/init/SystemInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ public void run(ApplicationArguments args) {
updateGitBuildState();
registerURL();
} catch (NoClassDefFoundError e) {
if (e.getMessage().contains("org/apache/flink")){
log.error("No Flink Jar dependency detected, please put the Flink Jar dependency into the DInky program first. (未检测到有 Flink Jar依赖,请先放入 Flink Jar 依赖到 DInky程序里)",e);
}else {
log.error("",e);
if (e.getMessage().contains("org/apache/flink")) {
log.error(
"No Flink Jar dependency detected, please put the Flink Jar dependency into the DInky program first. (未检测到有 Flink Jar依赖,请先放入 Flink Jar 依赖到 DInky程序里)",
e);
} else {
log.error("", e);
}
}
}
Expand Down

0 comments on commit aaf1bb0

Please sign in to comment.