Skip to content

Commit fa2f406

Browse files
maqimaqi
authored andcommitted
bugfix
1 parent 5c5a519 commit fa2f406

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

core/src/main/java/com/dtstack/flink/sql/util/PluginUtil.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,6 @@ public boolean accept(File dir, String name) {
160160
}
161161
}
162162

163-
if (StringUtils.isEmpty(coreJarFileName)){
164-
throw new Exception("Can not find core jar file in path:" + path);
165-
}
166-
167163
return coreJarFileName;
168164
}
169165

launcher/src/main/java/com/dtstack/flink/sql/launcher/perjob/PerJobSubmitter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ public class PerJobSubmitter {
5252
public static String submit(LauncherOptions launcherOptions, JobGraph jobGraph) throws Exception {
5353

5454
fillJobGraphClassPath(jobGraph);
55-
56-
String addjarPath = URLDecoder.decode(launcherOptions.getAddjar(), Charsets.UTF_8.toString());
57-
if (StringUtils.isNotBlank(addjarPath) ){
55+
if (StringUtils.isNoneEmpty(launcherOptions.getAddjar())) {
56+
String addjarPath = URLDecoder.decode(launcherOptions.getAddjar(), Charsets.UTF_8.toString());
5857
List<String> paths = getJarPaths(addjarPath);
5958
paths.forEach( path ->{
6059
jobGraph.addJar(new Path("file://" + path));
6160
});
62-
6361
}
6462

63+
64+
6565
String confProp = launcherOptions.getConfProp();
6666
confProp = URLDecoder.decode(confProp, Charsets.UTF_8.toString());
6767
Properties confProperties = PluginUtil.jsonStrToObject(confProp, Properties.class);

0 commit comments

Comments
 (0)