One thing could make this more complicated is partitioning.

On Mon, Dec 30, 2013 at 12:28 PM, Aureliano Buendia <buendia...@gmail.com>wrote:

> Hi,
>
> When reading a simple text file in spark, what's the best way of mapping
> each line to (line number, line)? RDD doesn't seem to have an equivalent of
> zipWithIndex.
>

Reply via email to