Mergesort using apache-spark

am new to Apache Spark, I have to write java code for mergesort in apache spark.

SparkConf conf = new SparkConf().setMaster("local").setAppName("Merge Sort App");
JavaSparkContext sc = new JavaSparkContext(conf);

JavaRDD<Integer> input = sc.parallelize(a); // where a is list of Integers  

I am done with loading array-list of Integers in javaRDD<Integer>:

I have to use integer element list to sort using megersort with apache spark.

Apache Spark Training

Hey there.

This sounds like a general software development question – it might be better suited for a site like – unless there’s something Sonar-specific I’m missing in your question!