public interface ExecutorAllocationClient
Modifier and Type | Method and Description |
---|---|
scala.collection.Seq<String> |
getExecutorIds()
Get the list of currently active executors
|
boolean |
isExecutorActive(String id)
Whether an executor is active.
|
boolean |
killExecutor(String executorId)
Request that the cluster manager kill the specified executor.
|
scala.collection.Seq<String> |
killExecutors(scala.collection.Seq<String> executorIds,
boolean adjustTargetNumExecutors,
boolean countFailures,
boolean force)
Request that the cluster manager kill the specified executors.
|
boolean |
killExecutorsOnHost(String host)
Request that the cluster manager kill every executor on the specified host.
|
boolean |
requestExecutors(int numAdditionalExecutors)
Request an additional number of executors from the cluster manager.
|
boolean |
requestTotalExecutors(int numExecutors,
int localityAwareTasks,
scala.collection.immutable.Map<String,Object> hostToLocalTaskCount)
Update the cluster manager on our scheduling needs.
|
scala.collection.Seq<String> getExecutorIds()
boolean isExecutorActive(String id)
id
- (undocumented)boolean killExecutor(String executorId)
executorId
- (undocumented)scala.collection.Seq<String> killExecutors(scala.collection.Seq<String> executorIds, boolean adjustTargetNumExecutors, boolean countFailures, boolean force)
executorIds
- identifiers of executors to killadjustTargetNumExecutors
- whether the target number of executors will be adjusted down
after these executors have been killedcountFailures
- if there are tasks running on the executors when they are killed, whether
to count those failures toward task failure limitsforce
- whether to force kill busy executors, default falseboolean killExecutorsOnHost(String host)
host
- (undocumented)boolean requestExecutors(int numAdditionalExecutors)
numAdditionalExecutors
- (undocumented)boolean requestTotalExecutors(int numExecutors, int localityAwareTasks, scala.collection.immutable.Map<String,Object> hostToLocalTaskCount)
numExecutors
- The total number of executors we'd like to have. The cluster manager
shouldn't kill any running executor to reach this number, but,
if all existing executors were to die, this is the number of executors
we'd want to be allocated.localityAwareTasks
- The number of tasks in all active stages that have a locality
preferences. This includes running, pending, and completed tasks.hostToLocalTaskCount
- A map of hosts to the number of tasks from all active stages
that would like to like to run on that host.
This includes running, pending, and completed tasks.