You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Gylfi <gy...@berkeley.edu> on 2015/07/18 10:51:49 UTC

Re: write a HashMap to HDFS in Spark

Hi. 

Assuming your have the data in an RDD you can save your RDD (regardless of
structure) with "nameRDD".saveAsObjectFile("path")   where "path" can be
"hdfs:///myfolderonHDFS" or the local file system. 

Alternatively you can also use .saveAsTextFile()

Regards, 
    Gylfi. 



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/write-a-HashMap-to-HDFS-in-Spark-tp23813p23897.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org