Apache Spark: Get number of records per partition Apache Spark: Get number of records per partition hadoop hadoop