We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b694e27 commit 00df329Copy full SHA for 00df329
core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1773,11 +1773,12 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
1773
// Unset YARN mode system env variable, to allow switching between cluster types.
1774
System.clearProperty("SPARK_YARN_MODE")
1775
SparkContext.clearActiveContext()
1776
- _stopHooks.foreach(_())
+ _stopHooks.foreach(hook => Utils.tryLogNonFatalError {
1777
+ hook()
1778
+ })
1779
logInfo("Successfully stopped SparkContext")
1780
}
1781
-
1782
/**
1783
* Get Spark's home location from either a value set through the constructor,
1784
* or the spark.home Java property, or the SPARK_HOME environment variable
0 commit comments