From 62fb1f9ff49a30db663e8fdde06490443032e5b8 Mon Sep 17 00:00:00 2001 From: Yin Huai Date: Wed, 24 Jun 2015 23:28:45 -0700 Subject: [PATCH] Add sc.stop(). --- .../scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala index eb23ceec28667..a38ed23b5cf9a 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala @@ -169,6 +169,7 @@ object SparkSubmitClassLoaderTest extends Logging { throw new Exception(s"table t1 should have 10 rows instead of $count rows") } logInfo("Test finishes.") + sc.stop() } } @@ -206,5 +207,6 @@ object SparkSQLConfTest extends Logging { val hiveContext = new TestHiveContext(sc) // Run a simple command to make sure all lazy vals in hiveContext get instantiated. hiveContext.tables().collect() + sc.stop() } }