How do you determine the number of sections of an arbitrary RDD in Scala?
I know that PySpark RDD has getNumPartitions defined in its API, but I can't find an equivalent on the Scala side.
It should be rdd.partitions.length .
rdd.partitions.length
At least in Spark 1.6.1 this works
rdd.getNumPartitions()