Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flinkx-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
<artifactSet>
<includes>
<include>com.google.guava:*</include>
<include>ch.qos.logback:*</include>
<include>org.slf4j:*</include>
</includes>
</artifactSet>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static ClusterClient createStandaloneClient(LauncherOptions launcherOptio
InetSocketAddress address = AkkaUtils.getInetSocketAddressFromAkkaURL(connectionInfo.getAddress());
config.setString(JobManagerOptions.ADDRESS, address.getAddress().getHostName());
config.setInteger(JobManagerOptions.PORT, address.getPort());
clusterClient.setDetached(true);
clusterClient.setDetached(launcherOptions.getDetached());
return clusterClient;
}

Expand Down Expand Up @@ -128,7 +128,7 @@ public static ClusterClient createYarnClient(LauncherOptions launcherOptions) {

AbstractYarnClusterDescriptor clusterDescriptor = new YarnClusterDescriptor(config, yarnConf, ".", yarnClient, false);
ClusterClient clusterClient = clusterDescriptor.retrieve(applicationId);
clusterClient.setDetached(true);
clusterClient.setDetached(launcherOptions.getDetached());
return clusterClient;
} catch(Exception e) {
throw new RuntimeException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public class LauncherOptionParser {

public static final String OPTION_FLINK_LIB_JAR = "flinkLibJar";

public static final String OPTION_DETACHED = "detached";

private Options options = new Options();

private BasicParser parser = new BasicParser();
Expand All @@ -67,6 +69,7 @@ public LauncherOptionParser(String[] args) {
options.addOption(OPTION_QUEUE, true, "yarn job queue");
options.addOption(OPTION_FLINK_CONF_PROP, true, "flink perjob conf prop");
options.addOption(OPTION_FLINK_LIB_JAR, true, "flink lib jar");
options.addOption(OPTION_DETACHED, false, "detached mode");

try {
CommandLine cl = parser.parse(options, args);
Expand Down Expand Up @@ -111,6 +114,9 @@ public LauncherOptionParser(String[] args) {
launcherOptions.setConfProp(confProp);
}

if (cl.hasOption(OPTION_DETACHED)) {
launcherOptions.setDetached(true);
}

} catch (Exception e) {
printUsage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class LauncherOptions {

private String confProp;

private boolean detached;

public int getParallelism() {
return parallelism;
}
Expand Down Expand Up @@ -135,4 +137,12 @@ public String getConfProp() {
public void setConfProp(String confProp) {
this.confProp = confProp;
}

public boolean getDetached() {
return detached;
}

public void setDetached(boolean detached) {
this.detached = detached;
}
}