I'm running Spark (0.5.1.2) on Mesos.
When I call collect() on a RDD, I get a "Exception in thread "main" java.util.NoSuchElementException: head of empty list".
I know it shouldn't matter but the RDD was non empty.
I'm able to run other jobs on the cluster successfully. Any insights into when this exception is triggered would be useful. Thanks
Exception in thread "main" java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:371)
at scala.collection.immutable.Nil$.head(List.scala:368)
at spark.DAGScheduler$$anonfun$runJob$7.apply(DAGScheduler.scala:276)
at spark.DAGScheduler$$anonfun$runJob$7.apply(DAGScheduler.scala:276)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:38)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
at scala.collection.mutable.ArrayOps.map(ArrayOps.scala:38)
at spark.DAGScheduler$class.runJob(DAGScheduler.scala:276)
at spark.MesosScheduler.runJob(MesosScheduler.scala:26)
at spark.SparkContext.runJob(SparkContext.scala:306)
at spark.SparkContext.runJob(SparkContext.scala:317)
at spark.SparkContext.runJob(SparkContext.scala:328)
at spark.RDD.collect(RDD.scala:161)