sbt.ForkMain$ForkError: java.lang.OutOfMemoryError: Java heap space

sbt.ForkMain$ForkError: sbt.ForkMain$ForkError: java.lang.OutOfMemoryError: Java heap space
	at scala.collection.mutable.ArrayBuilder$ofLong.mkArray(ArrayBuilder.scala:403)
	at scala.collection.mutable.ArrayBuilder$ofLong.resize(ArrayBuilder.scala:409)
	at scala.collection.mutable.ArrayBuilder$ofLong.sizeHint(ArrayBuilder.scala:414)
	at scala.Array$.fill(Array.scala:264)
	at org.apache.spark.MapOutputTrackerSuite$$anonfun$11$$anonfun$apply$3$$anonfun$apply$1.apply$mcVI$sp(MapOutputTrackerSuite.scala:263)
	at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
	at org.apache.spark.MapOutputTrackerSuite$$anonfun$11$$anonfun$apply$3.apply(MapOutputTrackerSuite.scala:261)
	at org.apache.spark.MapOutputTrackerSuite$$anonfun$11$$anonfun$apply$3.apply(MapOutputTrackerSuite.scala:250)
	at org.apache.spark.LocalSparkContext$.withSpark(LocalSparkContext.scala:62)
	at org.apache.spark.MapOutputTrackerSuite$$anonfun$11.apply(MapOutputTrackerSuite.scala:250)
	at org.apache.spark.MapOutputTrackerSuite$$anonfun$11.apply(MapOutputTrackerSuite.scala:243)
	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:186)
	at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:103)
	at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:183)
	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
	at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:196)
	at org.scalatest.FunSuite.runTest(FunSuite.scala:1560)
	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396)
	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
	at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:229)