Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2840#discussion_r19450141
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -856,6 +857,37 @@ class SparkContext(config: SparkConf) extends Logging {
         listenerBus.addListener(listener)
       }
     
    +  /**
    +   * :: DeveloperApi ::
    +   * Request an additional number of executors from the cluster manager.
    +   */
    +  @DeveloperApi
    +  def requestExecutors(numAdditionalExecutors: Int): Unit = {
    +    schedulerBackend match {
    +      case b: CoarseGrainedSchedulerBackend => 
b.requestExecutors(numAdditionalExecutors)
    +      case _ => logWarning("Requesting executors is only supported in 
coarse-grained mode")
    +    }
    +  }
    +
    +  /**
    +   * :: DeveloperApi ::
    +   * Request the cluster manager to kill the specified executors.
    +   */
    +  @DeveloperApi
    +  def killExecutors(executorIds: Seq[String]): Unit = {
    --- End diff --
    
    Good point. I think only advanced users can use this. They can access this 
through `sc.getExecutorStorageStatus` or attach their own listener and listen 
for block manager events.


---
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]

Reply via email to