Skip to content

Commit

Permalink
[FLINK-7000] Add custom configuration local environment in Scala Stre…
Browse files Browse the repository at this point in the history
…amExecutionEnvironment

This closes apache#4178.
  • Loading branch information
ch33hau authored and zentol committed Jun 30, 2017
1 parent 031862d commit b7f3f1f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,18 @@ object StreamExecutionEnvironment {
new StreamExecutionEnvironment(JavaEnv.createLocalEnvironment(parallelism))
}

/**
* 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.
*
* @param parallelism The parallelism for the local environment.
* @param configuration Pass a custom configuration into the cluster.
*/
def createLocalEnvironment(parallelism: Int, configuration: Configuration):
StreamExecutionEnvironment = {
new StreamExecutionEnvironment(JavaEnv.createLocalEnvironment(parallelism, configuration))
}

/**
* Creates a [[StreamExecutionEnvironment]] for local program execution that also starts the
* web monitoring UI.
Expand Down

0 comments on commit b7f3f1f

Please sign in to comment.