Github user kmadhugit commented on a diff in the pull request:
https://github.com/apache/spark/pull/7461#discussion_r38496331
--- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
@@ -1080,6 +1080,21 @@ abstract class RDD[T: ClassTag](
var partiallyAggregated = mapPartitions(it =>
Iterator(aggregatePartition(it)))
var numPartitions = partiallyAggregated.partitions.length
val scale = math.max(math.ceil(math.pow(numPartitions, 1.0 /
depth)).toInt, 2)
+
+ // Do one level of aggregation based on executorId before starting
the tree
+ // NOTE: exclude the driver from list of executors
+ val numExecutors = math.max(context.getExecutorStorageStatus.length
- 1, 1)
--- End diff --
In that case numExecutors will become 1 and it will be aggregated in single
pass similar to rdd.aggregate().
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]