[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
This commit is contained in:
Eric Eijkelenboom 2014-10-02 18:04:38 -07:00 committed by Andrew Or
parent 8081ce8bd1
commit 42d5077fd3

View file

@ -154,7 +154,8 @@ private[spark] object SparkSubmitDriverBootstrapper {
process.destroy()
}
}
process.waitFor()
val returnCode = process.waitFor()
sys.exit(returnCode)
}
}