GitHub user bsidhom opened a pull request:
https://github.com/apache/beam/pull/4138
Shut down executor when spark runner finishes
The Spark runner previously left the JVM process hanging after
completion because its one-time use executor service was never shut
down. This change shuts down the executor after jobs have been
submitted, allowing graceful JVM termination.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bsidhom/beam spark-shutdown
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/beam/pull/4138.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4138
commit ad08afa0655407b254270228cae55ceb65774208
Author: Ben Sidhom
Date: 2017-11-16T00:05:49Z
Shut down executor when spark runner finishes
The Spark runner previously left the JVM process hanging after
completion because its one-time use executor service was never shut
down. This change shuts down the executor after jobs have been
submitted, allowing graceful JVM termination.
---