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$ofByte.mkArray(ArrayBuilder.scala:131)
	at scala.collection.mutable.ArrayBuilder$ofByte.resize(ArrayBuilder.scala:137)
	at scala.collection.mutable.ArrayBuilder$ofByte.sizeHint(ArrayBuilder.scala:142)
	at scala.collection.mutable.Builder$class.sizeHint(Builder.scala:69)
	at scala.collection.mutable.ArrayBuilder.sizeHint(ArrayBuilder.scala:22)
	at scala.collection.TraversableLike$class.builder$1(TraversableLike.scala:230)
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
	at scala.collection.mutable.ArrayOps$ofLong.map(ArrayOps.scala:246)
	at org.apache.spark.scheduler.CompressedMapStatus.<init>(MapStatus.scala:113)
	at org.apache.spark.MapOutputTrackerSuite$$anonfun$11$$anonfun$apply$3$$anonfun$apply$1.apply$mcVI$sp(MapOutputTrackerSuite.scala:262)
	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)