You can do something like:




Stefan Panayotov, PhD

Cell: 610-517-5586

Home: 610-355-0919


From: Gavin Yue []
Sent: Thursday, August 25, 2016 1:15 PM
To: user <>
Subject: How to output RDD to one file with specific name?


I am trying to output RDD to disk by




It outputs to foo folder with a file with name: Part-00000. 


Is there a way I could directly save the file as /foo/somename ?