StreamExecutionEnvironment

org.apache.flinkx.api.StreamExecutionEnvironment
See theStreamExecutionEnvironment companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates a local execution environment. The local execution environment will run the program in a multi-threaded fashion in the same JVM as the environment was created in.

Creates a local execution environment. The local execution environment will run the program in a multi-threaded fashion in the same JVM as the environment was created in.

This method sets the environment's default parallelism to given parameter, which defaults to the value set via setDefaultLocalParallelism.

Attributes

def createLocalEnvironment(parallelism: Int, configuration: Configuration): StreamExecutionEnvironment

Creates a local execution environment. The local execution environment will run the program in a multi-threaded fashion in the same JVM as the environment was created in.

Creates a local execution environment. The local execution environment will run the program in a multi-threaded fashion in the same JVM as the environment was created in.

Value parameters

configuration

Pass a custom configuration into the cluster.

parallelism

The parallelism for the local environment.

Attributes

@PublicEvolving

Creates a StreamExecutionEnvironment for local program execution that also starts the web monitoring UI.

Creates a StreamExecutionEnvironment for local program execution that also starts the web monitoring UI.

The local execution environment will run the program in a multi-threaded fashion in the same JVM as the environment was created in. It will use the parallelism specified in the parameter.

If the configuration key 'rest.port' was set in the configuration, that particular port will be used for the web UI. Otherwise, the default port (8081) will be used.

Value parameters

config

optional config for the local execution

Attributes

Returns

The created StreamExecutionEnvironment

def createRemoteEnvironment(host: String, port: Int, jarFiles: String*): StreamExecutionEnvironment

Creates a remote execution environment. The remote environment sends (parts of) the program to a cluster for execution. Note that all file paths used in the program must be accessible from the cluster. The execution will use the cluster's default parallelism, unless the parallelism is set explicitly via StreamExecutionEnvironment.setParallelism.

Creates a remote execution environment. The remote environment sends (parts of) the program to a cluster for execution. Note that all file paths used in the program must be accessible from the cluster. The execution will use the cluster's default parallelism, unless the parallelism is set explicitly via StreamExecutionEnvironment.setParallelism.

Value parameters

host

The host name or address of the master (JobManager), where the program should be executed.

jarFiles

The JAR files with code that needs to be shipped to the cluster. If the program uses user-defined functions, user-defined input formats, or any libraries, those must be provided in the JAR files.

port

The port of the master (JobManager), where the program should be executed.

Attributes

def createRemoteEnvironment(host: String, port: Int, parallelism: Int, jarFiles: String*): StreamExecutionEnvironment

Creates a remote execution environment. The remote environment sends (parts of) the program to a cluster for execution. Note that all file paths used in the program must be accessible from the cluster. The execution will use the specified parallelism.

Creates a remote execution environment. The remote environment sends (parts of) the program to a cluster for execution. Note that all file paths used in the program must be accessible from the cluster. The execution will use the specified parallelism.

Value parameters

host

The host name or address of the master (JobManager), where the program should be executed.

jarFiles

The JAR files with code that needs to be shipped to the cluster. If the program uses user-defined functions, user-defined input formats, or any libraries, those must be provided in the JAR files.

parallelism

The parallelism to use during the execution.

port

The port of the master (JobManager), where the program should be executed.

Attributes

@PublicEvolving

Gets the default parallelism that will be used for the local execution environment created by createLocalEnvironment.

Gets the default parallelism that will be used for the local execution environment created by createLocalEnvironment.

Attributes

Creates an execution environment that represents the context in which the program is currently executed. If the program is invoked standalone, this method returns a local execution environment. If the program is invoked from within the command line client to be submitted to a cluster, this method returns the execution environment of this cluster.

Creates an execution environment that represents the context in which the program is currently executed. If the program is invoked standalone, this method returns a local execution environment. If the program is invoked from within the command line client to be submitted to a cluster, this method returns the execution environment of this cluster.

Attributes

@PublicEvolving
def setDefaultLocalParallelism(parallelism: Int): Unit

Sets the default parallelism that will be used for the local execution environment created by createLocalEnvironment.

Sets the default parallelism that will be used for the local execution environment created by createLocalEnvironment.

Value parameters

parallelism

The default parallelism to use for local execution.

Attributes