diff options
author | Eric Eijkelenboom <ee@userreport.com> | 2014-10-02 18:04:38 -0700 |
---|---|---|
committer | Andrew Or <andrewor14@gmail.com> | 2014-10-02 18:04:38 -0700 |
commit | 42d5077fd3f2c37d1cd23f4c81aa89286a74cb40 (patch) | |
tree | 54f97662d2fad2ebdc24d81ff12a6e65508e9959 /core/src/main/scala | |
parent | 8081ce8bd111923db143abc55bb6ef9793eece35 (diff) | |
download | spark-42d5077fd3f2c37d1cd23f4c81aa89286a74cb40.tar.gz spark-42d5077fd3f2c37d1cd23f4c81aa89286a74cb40.tar.bz2 spark-42d5077fd3f2c37d1cd23f4c81aa89286a74cb40.zip |
[DEPLOY] SPARK-3759: Return the exit code of the driver process
SparkSubmitDriverBootstrapper.scala now returns the exit code of the driver process, instead of always returning 0.
Author: Eric Eijkelenboom <ee@userreport.com>
Closes #2628 from ericeijkelenboom/master and squashes the following commits:
cc4a571 [Eric Eijkelenboom] Return the exit code of the driver process
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala b/core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala index 38b5d8e173..a64170a47b 100644 --- a/core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala +++ b/core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala @@ -154,7 +154,8 @@ private[spark] object SparkSubmitDriverBootstrapper { process.destroy() } } - process.waitFor() + val returnCode = process.waitFor() + sys.exit(returnCode) } } |