We have RDD.saveAsTextFile and RDD.saveAsObjectFile for saving the output to any location specified. The params to be provided are: >path of storage location >no. of partitions
For giving an hdfs path we use the following format: "/user/<user-name>/<directory-to-sore>/" On Tue, Nov 11, 2014 at 6:28 PM, Naveen Kumar Pokala < npok...@spcapitaliq.com> wrote: > Hi, > > > > I am spark 1.1.0. I need a help regarding saving rdd in a JSON file? > > > > How to do that? And how to mentions hdfs path in the program. > > > > > > -Naveen > > > > >