[SPARK-7287] [SPARK-8567] [TEST] Add sc.stop to applications in SparkSubmitSuite

Hopefully, this suite will not be flaky anymore.

Author: Yin Huai <yhuai@databricks.com>

Closes #7027 from yhuai/SPARK-8567 and squashes the following commits:

c0167e2 [Yin Huai] Add sc.stop().

(cherry picked from commit fbf75738fe)
Signed-off-by: Andrew Or <andrew@databricks.com>
This commit is contained in:
Yin Huai 2015-06-29 17:20:05 -07:00 committed by Andrew Or
parent f84f24769a
commit cdfa388dd0
3 changed files with 3 additions and 0 deletions

View file

@ -548,6 +548,7 @@ object JarCreationTest extends Logging {
if (result.nonEmpty) { if (result.nonEmpty) {
throw new Exception("Could not load user class from jar:\n" + result(0)) throw new Exception("Could not load user class from jar:\n" + result(0))
} }
sc.stop()
} }
} }
@ -573,6 +574,7 @@ object SimpleApplicationTest {
s"Master had $config=$masterValue but executor had $config=$executorValue") s"Master had $config=$masterValue but executor had $config=$executorValue")
} }
} }
sc.stop()
} }
} }

View file

@ -38,6 +38,7 @@ object Main {
val df = hc.createDataFrame(Seq(MyCoolClass("1", "2", "3"))) val df = hc.createDataFrame(Seq(MyCoolClass("1", "2", "3")))
df.collect() df.collect()
println("Regression test for SPARK-8489 success!") println("Regression test for SPARK-8489 success!")
sc.stop()
} }
} }