apache/spark — pull request #3403 by lianhuiwang (2014-11-21 11:48:20+00:00)
Title: [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();
inputFormatInfoList.add(new InputFormatInfo(conf, org.apache.hadoop.mapred.TextInputFormat.class, path));
JavaSparkContext ctx=new JavaSparkContext(sparkConf,inputFormatInfoList);