GitHub user lianhuiwang opened a pull request:
https://github.com/apache/spark/pull/3403
[SPARK-4534][Core]JavaSparkContext create new constructor to support
preferredNodeLocalityData with YARN
create new constructor to support preferredNodeLocalityData with YARN
example:
SparkConf sparkConf=new SparkConf();
Configuration conf = new Configuration();
List inputFormatInfoList =new ArrayList<InputFormatInfo>();
inputFormatInfoList.add(new InputFormatInfo(conf,
org.apache.hadoop.mapred.TextInputFormat.class, path));
JavaSparkContext ctx=new JavaSparkContext(sparkConf,inputFormatInfoList);
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lianhuiwang/spark SPARK-4534
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3403.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 #3403
----
commit ff93679eb285656ec0b1ef127b193ac2c3498870
Author: lianhuiwang <[email protected]>
Date: 2014-11-21T11:42:30Z
JavaSparkContext support preferredNodeLocalityData
----
---
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]