title: Save a spark RDD to the local file system using Java
body: <p>I have a RDD that is generated using Spark. Now if I write this RDD to a csv file, I am provided with some methods like "saveAsTextFile()" which outputs a csv file to the HDFS.</p>
  
  <p>I want to write the file to my local file system so that my SSIS process can pick the files from the system and load them into the DB.</p>
  
  <p>I am currently unable to use sqoop.</p>
  
  <p>Is it somewhere possible in Java other than writing shell scripts to do that.</p>
  
  <p>Any clarity needed, please let know.</p>