If i use groupbyKey as so...

JavaPairRDD<String, List&lt;String>> twos = ones.groupByKey(3).cache();

How would I write to a file/ or Hadoop the contents of the List of Strings.
Do i need to transform the JavaPairRDD to JavaRDD and call f saveAsTextFile?

 



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/ReduceByKey-or-groupByKey-to-Count-tp1765p2078.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to