GitHub user li-zhihui opened a pull request:
https://github.com/apache/spark/pull/900
submit stage after (configured ratio of) executors have been registered
Because creating TaskSetManager and registering executors are asynchronous,
in most situation, early stages' tasks run without preferred locality.
A simple solution is sleeping few seconds in application, so that executors
have enough time to register.
The PR add 2 configuration properties to make DAGScheduler submit stage
after a few of executors have been registered.
# submit stage only after successfully registered executors arrived the
ratio, default value 0
spark.executor.registeredRatio = 0.8
# whatever registeredRatio is arrived, submit stage after the
maxRegisteredWaitingTime(millisecond), default value 10000
spark.executor.maxRegisteredWaitingTime = 5000
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/li-zhihui/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/900.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 #900
----
commit a9ee1cb3efbcb58b59f66b4ddecb515609b51b86
Author: li-zhihui <[email protected]>
Date: 2014-05-28T05:35:13Z
submit stage after (configured ratio of) executors have been registered
----
---
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.
---