JavaPairRDD has JavaRDD so you can directly call save file functions.

Mayur Rustagi
Ph: +919632149971
h <https://twitter.com/mayur_rustagi>ttp://www.sigmoidanalytics.com
https://twitter.com/mayur_rustagi



On Wed, Feb 26, 2014 at 7:20 AM, dmpour23 <dmpou...@gmail.com> wrote:

> 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