GitHub user cmccabe opened a pull request:
https://github.com/apache/spark/pull/1486
SPARK-1767: Prefer HDFS-cached replicas when scheduling data-local tasks
This change reorders the replicas returned by
HadoopRDD#getPreferredLocations so that replicas cached by HDFS are at
the start of the list. This requires Hadoop 2.5 or higher; previous
versions of Hadoop do not expose the information needed to determine
whether a replica is cached.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cmccabe/spark SPARK-1767
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/1486.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 #1486
----
commit 4fe4e26ebb65b9b770ae2128f0bb5e62d9a9197a
Author: Colin Patrick Mccabe <[email protected]>
Date: 2014-07-17T18:25:56Z
SPARK-1767: Prefer HDFS-cached replicas when scheduling data-local tasks
This change reorders the replicas returned by
HadoopRDD#getPreferredLocations so that replicas cached by HDFS are at
the start of the list. This requires Hadoop 2.5 or higher; previous
versions of Hadoop do not expose the information needed to determine
whether a replica is cached.
----
---
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.
---