title: How to get nth row of Spark RDD?
body: <p>Suppose I have an RDD of arbitrary objects. I wish to get the 10th (say) row of the RDD. How would I do that?
  One way is to use rdd.take(n) and then access the nth element is the object, but this approach is slow when n is large. </p>