mhmm Don't use a ParallelCollectionRDD here. I think you are just trying to generate the splits, which can be done with Scala local collections entirely.