Skip to content
Snippets Groups Projects
Commit ae0309a8 authored by zhuol's avatar zhuol Committed by Tom Graves
Browse files

[SPARK-10911] Executors should System.exit on clean shutdown.

Call system.exit explicitly to make sure non-daemon user threads terminate. Without this, user applications might live forever if the cluster manager does not appropriately kill them. E.g., YARN had this bug: HADOOP-12441.

Author: zhuol <zhuol@yahoo-inc.com>

Closes #9946 from zhuoliu/10911.
parent 649e9d0f
No related branches found
No related tags found
No related merge requests found
......@@ -241,6 +241,7 @@ private[spark] object CoarseGrainedExecutorBackend extends Logging {
}
run(driverUrl, executorId, hostname, cores, appId, workerUrl, userClassPath)
System.exit(0)
}
private def printUsageAndExit() = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment