Skip to content

Commit

Permalink
[FLINK-14663[tests] Support starting individual Job-/TaskManagers
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Nov 15, 2019
1 parent 2b0a8ce commit 0d181e9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ public void afterTestFailure() {
afterTestSuccess();
}

public void startJobManager() throws IOException {
LOG.info("Starting Flink JobManager.");
AutoClosableProcess.runBlocking(bin.resolve("jobmanager.sh").toAbsolutePath().toString(), "start");
}

public void startTaskManager() throws IOException {
LOG.info("Starting Flink TaskManager.");
AutoClosableProcess.runBlocking(bin.resolve("taskmanager.sh").toAbsolutePath().toString(), "start");
}

public void startFlinkCluster() throws IOException {
LOG.info("Starting Flink cluster.");
AutoClosableProcess.runBlocking(bin.resolve("start-cluster.sh").toAbsolutePath().toString());
Expand Down

0 comments on commit 0d181e9

Please sign in to comment.