aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorEric Eijkelenboom <ee@userreport.com>2014-10-02 18:04:38 -0700
committerAndrew Or <andrewor14@gmail.com>2014-10-02 18:04:49 -0700
commit699af62dcb480230bd1a3ae82130080d325aa0d1 (patch)
tree46a222133a3716a0812cc4f59468960e75bfd6ec /core
parent16789f62aac8bb88e7c3308e4c9f34511d1698a1 (diff)
downloadspark-699af62dcb480230bd1a3ae82130080d325aa0d1.tar.gz
spark-699af62dcb480230bd1a3ae82130080d325aa0d1.tar.bz2
spark-699af62dcb480230bd1a3ae82130080d325aa0d1.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 (cherry picked from commit 42d5077fd3f2c37d1cd23f4c81aa89286a74cb40) Signed-off-by: Andrew Or <andrewor14@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala3
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)
}
}