You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/11/21 12:48:33 UTC

[jira] [Commented] (SPARK-4534) With YARN, JavaSparkContext provide to add preferredNodeLocalityData to SparkContext

    [ https://issues.apache.org/jira/browse/SPARK-4534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220811#comment-14220811 ] 

Apache Spark commented on SPARK-4534:
-------------------------------------

User 'lianhuiwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/3403

> With YARN, JavaSparkContext provide to add preferredNodeLocalityData to SparkContext
> ------------------------------------------------------------------------------------
>
>                 Key: SPARK-4534
>                 URL: https://issues.apache.org/jira/browse/SPARK-4534
>             Project: Spark
>          Issue Type: Improvement
>          Components: Java API
>            Reporter: Lianhui Wang
>
> 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);
> we can use above code to let preferredNodeLocalityData be work in Java program.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org