Step1
List<String> items = new ArrayList<String>();items.addAll(XXX);
javaSparkContext.parallelize(items).saveAsTextFile(output);
Step2
final List<String> items2 = ctx.textFile(output).collect();
Does items and items2 has the same order?
Besh wishes.
Thanks.
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Does-parallelize-and-collect-preserve-the-original-order-of-list-tp26512.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]