On Thu, Jul 16, 2015 at 7:37 AM Brandon White <bwwintheho...@gmail.com>
wrote:

> Hello,
>
> I have a list of rdds
>
> List(rdd1, rdd2, rdd3,rdd4)
>
> I would like to save these rdds in parallel. Right now, it is running each
> operation sequentially. I tried using a rdd of rdd but that does not work.
>
> list.foreach { rdd =>
>   rdd.saveAsTextFile("/tmp/cache/")
> }
>
> Any ideas?
>

If they're to be saved in the same text file, use the answer from Davies -
if they're to be saved in separate files, list.par.foreach should work, no?

Regards,
Vetle

Reply via email to