Cannot call methods on a stopped SparkContext.&#010;This stopped SparkContext was created at:&#010;&#010;org.apache.spark.SparkContext.<init>(SparkContext.scala:147)&#010;org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply$mcV$sp(ExternalAppendOnlyMapSuite.scala:384)&#010;org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply(ExternalAppendOnlyMapSuite.scala:380)&#010;org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply(ExternalAppendOnlyMapSuite.scala:380)&#010;org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)&#010;org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)&#010;org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)&#010;org.scalatest.Transformer.apply(Transformer.scala:22)&#010;org.scalatest.Transformer.apply(Transformer.scala:20)&#010;org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)&#010;org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:42)&#010;org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)&#010;org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)&#010;org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)&#010;org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)&#010;org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)&#010;org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(ExternalAppendOnlyMapSuite.scala:26)&#010;org.scalatest.BeforeAndAfterEach$class.runTest(BeforeAndAfterEach.scala:255)&#010;org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.runTest(ExternalAppendOnlyMapSuite.scala:26)&#010;org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)&#010;&#010;The currently active SparkContext was created at:&#010;&#010;(No active SparkContext.)&#010;


      java.lang.IllegalStateException: Cannot call methods on a stopped SparkContext.
This stopped SparkContext was created at:

org.apache.spark.SparkContext.<init>(SparkContext.scala:147)
org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply$mcV$sp(ExternalAppendOnlyMapSuite.scala:384)
org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply(ExternalAppendOnlyMapSuite.scala:380)
org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply(ExternalAppendOnlyMapSuite.scala:380)
org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
org.scalatest.Transformer.apply(Transformer.scala:22)
org.scalatest.Transformer.apply(Transformer.scala:20)
org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:42)
org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(ExternalAppendOnlyMapSuite.scala:26)
org.scalatest.BeforeAndAfterEach$class.runTest(BeforeAndAfterEach.scala:255)
org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.runTest(ExternalAppendOnlyMapSuite.scala:26)
org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)

The currently active SparkContext was created at:

(No active SparkContext.)
         
      at org.apache.spark.SparkContext.org$apache$spark$SparkContext$$assertNotStopped(SparkContext.scala:106)
      at org.apache.spark.SparkContext.getSchedulingMode(SparkContext.scala:1578)
      at org.apache.spark.SparkContext.postEnvironmentUpdate(SparkContext.scala:2179)
      at org.apache.spark.SparkContext.<init>(SparkContext.scala:579)
      at org.apache.spark.SparkContext.<init>(SparkContext.scala:147)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply$mcV$sp(ExternalAppendOnlyMapSuite.scala:384)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply(ExternalAppendOnlyMapSuite.scala:380)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite$$anonfun$18.apply(ExternalAppendOnlyMapSuite.scala:380)
      at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
      at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
      at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:42)
      at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
      at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
      at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(ExternalAppendOnlyMapSuite.scala:26)
      at org.scalatest.BeforeAndAfterEach$class.runTest(BeforeAndAfterEach.scala:255)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.runTest(ExternalAppendOnlyMapSuite.scala:26)
      at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
      at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
      at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
      at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
      at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
      at org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
      at org.scalatest.Suite$class.run(Suite.scala:1424)
      at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
      at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
      at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
      at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.org$scalatest$BeforeAndAfterAll$$super$run(ExternalAppendOnlyMapSuite.scala:26)
      at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
      at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
      at org.apache.spark.util.collection.ExternalAppendOnlyMapSuite.run(ExternalAppendOnlyMapSuite.scala:26)
      at org.scalatest.Suite$class.callExecuteOnSuite$1(Suite.scala:1492)
      at org.scalatest.Suite$$anonfun$runNestedSuites$1.apply(Suite.scala:1528)
      at org.scalatest.Suite$$anonfun$runNestedSuites$1.apply(Suite.scala:1526)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
      at org.scalatest.Suite$class.runNestedSuites(Suite.scala:1526)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:29)
      at org.scalatest.Suite$class.run(Suite.scala:1421)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:29)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:55)
      at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2563)
      at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2557)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2557)
      at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
      at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
      at org.scalatest.tools.Runner$.main(Runner.scala:860)
      at org.scalatest.tools.Runner.main(Runner.scala)