You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Gary Malouf <ma...@gmail.com> on 2013/09/12 18:59:45 UTC

Equivalent of countByKey() saving as text file in Hadoop

Spark version 0.7.3

Is the easiest thing to reconvert the map produced by the countByKey()
function into an RDD and then save it to text file?  Having to use scala
file IO or the Hadoop FileSystem object directly were not ideal solutions.