GitHub user tigerquoll opened a pull request:
https://github.com/apache/spark/pull/2533
SPARK-CORE [SPARK-3651] Group common CoarseGrainedSchedulerBackend
variables together
from [SPARK-3651]
In CoarseGrainedSchedulerBackend, we have:
private val executorActor = new HashMap[String, ActorRef]
private val executorAddress = new HashMap[String, Address]
private val executorHost = new HashMap[String, String]
private val freeCores = new HashMap[String, Int]
private val totalCores = new HashMap[String, Int]
We only ever put / remove stuff from these maps together. It would simplify
the code if we consolidate these all into one map as we have done in
JobProgressListener in https://issues.apache.org/jira/browse/SPARK-2299.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tigerquoll/spark-tigerquoll SPARK-3651
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2533.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2533
----
commit 7d671cf230bdad22f42f336174e8e0a8f7bc267b
Author: Dale <[email protected]>
Date: 2014-09-25T10:46:30Z
[SPARK-3651] Grouped variables under a ExecutorDataObject, and reference
them via a map entry as they are all retrieved under the same key
----
---
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]