You can look into .saveAsObjectFiles Thanks Best Regards
On Thu, Jul 23, 2015 at 8:44 PM, Oren Shpigel <o...@yowza3d.com> wrote: > Hi, > I use Spark to read binary files using SparkContext.binaryFiles(), and then > do some calculations, processing, and manipulations to get new objects > (also > binary). > The next thing I want to do is write the results back to binary files on > disk. > > Is there any equivalence like saveAsTextFile just for binary files? > Is there any other way to save the results to be used outside Spark? > > Thanks, > Oren > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Writing-binary-files-in-Spark-tp23970.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >