public class RemoteExecutor extends PlanExecutor
PlanExecutor that takes the program
and ships it to a remote Flink cluster for execution.
The RemoteExecutor is pointed at the JobManager and gets the program and (if necessary) the set of libraries that need to be shipped together with the program.
The RemoteExecutor is used in the RemoteEnvironment to
remotely execute program parts.
| Constructor and Description |
|---|
RemoteExecutor(InetSocketAddress inet,
Configuration clientConfiguration,
List<URL> jarFiles,
List<URL> globalClasspaths) |
RemoteExecutor(String hostport,
Configuration clientConfiguration,
URL jarFile) |
RemoteExecutor(String hostname,
int port) |
RemoteExecutor(String hostname,
int port,
Configuration clientConfiguration) |
RemoteExecutor(String hostname,
int port,
Configuration clientConfiguration,
List<URL> jarFiles,
List<URL> globalClasspaths) |
RemoteExecutor(String hostname,
int port,
Configuration clientConfiguration,
URL jarFile) |
RemoteExecutor(String hostname,
int port,
List<URL> jarFiles) |
RemoteExecutor(String hostname,
int port,
URL jarFile) |
RemoteExecutor(String hostport,
URL jarFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
endSession(JobID jobID) |
JobExecutionResult |
executePlan(Plan plan) |
JobExecutionResult |
executePlanWithJars(JobWithJars program) |
int |
getDefaultParallelism()
Gets the parallelism that will be used when neither the program does not define
any parallelism at all.
|
String |
getOptimizerPlanAsJSON(Plan plan) |
boolean |
isRunning() |
void |
setDefaultParallelism(int defaultParallelism)
Sets the parallelism that will be used when neither the program does not define
any parallelism at all.
|
void |
start() |
void |
stop() |
createLocalExecutor, createRemoteExecutor, isPrintingStatusDuringExecution, setPrintStatusDuringExecutionpublic RemoteExecutor(String hostname, int port)
public RemoteExecutor(String hostname, int port, Configuration clientConfiguration)
public RemoteExecutor(String hostname, int port, Configuration clientConfiguration, URL jarFile)
public RemoteExecutor(String hostport, Configuration clientConfiguration, URL jarFile)
public RemoteExecutor(String hostname, int port, Configuration clientConfiguration, List<URL> jarFiles, List<URL> globalClasspaths)
public RemoteExecutor(InetSocketAddress inet, Configuration clientConfiguration, List<URL> jarFiles, List<URL> globalClasspaths)
public void setDefaultParallelism(int defaultParallelism)
defaultParallelism - The default parallelism for the executor.public int getDefaultParallelism()
public void start()
throws Exception
start in class PlanExecutorExceptionpublic void stop()
throws Exception
stop in class PlanExecutorExceptionpublic boolean isRunning()
isRunning in class PlanExecutorpublic JobExecutionResult executePlan(Plan plan) throws Exception
executePlan in class PlanExecutorExceptionpublic JobExecutionResult executePlanWithJars(JobWithJars program) throws Exception
Exceptionpublic String getOptimizerPlanAsJSON(Plan plan) throws Exception
getOptimizerPlanAsJSON in class PlanExecutorExceptionpublic void endSession(JobID jobID) throws Exception
endSession in class PlanExecutorExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.