I have RDD[Row], which needs to be persisted to a third party repository. But this third party repository accepts of maximum of 5 MB in a single call.
RDD[Row]
S
I think RDD.count() will give you the number of elements in the RDD