GitHub user ConeyLiu opened a pull request:
https://github.com/apache/spark/pull/17300
[SPARK-19956][Core]Optimize a location order of blocks with topology
information
## What changes were proposed in this pull request?
When call the method getLocations of BlockManager, we only compare the data
block host. Random selection for non-local data blocks, this may cause the
selected data block to be in a different rack. So in this patch to increase the
sort of the rack.
## How was this patch tested?
New test case.
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ConeyLiu/spark blockmanager
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17300.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 #17300
----
commit 926ea2551487f170b24f06a0d6c11879103b05b5
Author: Xianyang Liu <[email protected]>
Date: 2017-03-15T02:42:49Z
optimize a location order of blocks with topology information
----
---
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]