提交 ccf4ebdd 编写于 作者: R Robert Metzger

[FLINK-2990] Fix Flink on YARN for Scala 2.11

上级 4462f530
...@@ -374,7 +374,7 @@ public class FlinkYarnSessionCli { ...@@ -374,7 +374,7 @@ public class FlinkYarnSessionCli {
getYARNSessionCLIOptions(options); getYARNSessionCLIOptions(options);
CommandLineParser parser = new PosixParser(); CommandLineParser parser = new PosixParser();
CommandLine cmd = null; CommandLine cmd;
try { try {
cmd = parser.parse(options, args); cmd = parser.parse(options, args);
} catch(Exception e) { } catch(Exception e) {
......
...@@ -256,7 +256,7 @@ public abstract class FlinkYarnClientBase extends AbstractFlinkYarnClient { ...@@ -256,7 +256,7 @@ public abstract class FlinkYarnClientBase extends AbstractFlinkYarnClient {
for(File shipFile: shipFiles) { for(File shipFile: shipFiles) {
// remove uberjar from ship list (by default everything in the lib/ folder is added to // remove uberjar from ship list (by default everything in the lib/ folder is added to
// the list of files to ship, but we handle the uberjar separately. // the list of files to ship, but we handle the uberjar separately.
if(!(shipFile.getName().startsWith("flink-dist-") && shipFile.getName().endsWith("jar"))) { if(!(shipFile.getName().startsWith("flink-dist") && shipFile.getName().endsWith("jar"))) {
this.shipFiles.add(shipFile); this.shipFiles.add(shipFile);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册