public class ClusterUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CANNOT_EXECUTE_EMPTY_JOB |
| Constructor and Description |
|---|
ClusterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.api.common.JobExecutionResult |
runOnMiniCluster(org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
int numOfSlots,
boolean printDuringExecution) |
static org.apache.flink.api.common.JobExecutionResult |
runOnMiniCluster(org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
int parallelism,
long memorySize,
boolean printDuringExecution)
Executes the given JobGraph locally, on a FlinkMiniCluster
|
public static final String CANNOT_EXECUTE_EMPTY_JOB
public static org.apache.flink.api.common.JobExecutionResult runOnMiniCluster(org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
int parallelism,
long memorySize,
boolean printDuringExecution)
throws Exception
jobGraph - jobGraphparallelism - numberOfTaskTrackersmemorySize - memorySizeExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.