diff options
author | Tathagata Das <tathagata.das1565@gmail.com> | 2016-08-08 12:52:04 -0700 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2016-08-08 12:52:04 -0700 |
commit | 8650239050ade91689ffa0672ea094de2594e37c (patch) | |
tree | 8aff4a060e6b8cb448bf5f9c8940368f27a831db /core/src | |
parent | 1739e75fecf0cb9507dc950bba1716f40be1e609 (diff) | |
download | spark-8650239050ade91689ffa0672ea094de2594e37c.tar.gz spark-8650239050ade91689ffa0672ea094de2594e37c.tar.bz2 spark-8650239050ade91689ffa0672ea094de2594e37c.zip |
[SPARK-16953] Make requestTotalExecutors public Developer API to be consistent with requestExecutors/killExecutors
## What changes were proposed in this pull request?
RequestExecutors and killExecutor are public developer APIs for managing the number of executors allocated to the SparkContext. For consistency, requestTotalExecutors should also be a public Developer API, as it provides similar functionality. In fact, using requestTotalExecutors is more convenient that requestExecutors as the former is idempotent and the latter is not.
Author: Tathagata Das <tathagata.das1565@gmail.com>
Closes #14541 from tdas/SPARK-16953.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/org/apache/spark/SparkContext.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala index 48126c255f..fc7ea51ab0 100644 --- a/core/src/main/scala/org/apache/spark/SparkContext.scala +++ b/core/src/main/scala/org/apache/spark/SparkContext.scala @@ -1473,7 +1473,8 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli * This includes running, pending, and completed tasks. * @return whether the request is acknowledged by the cluster manager. */ - private[spark] override def requestTotalExecutors( + @DeveloperApi + override def requestTotalExecutors( numExecutors: Int, localityAwareTasks: Int, hostToLocalTaskCount: scala.collection.immutable.Map[String, Int] |