title: How to overwrite the output directory in spark
body: <p>I have a spark streaming application which produces a dataset for every minute.
  I need to save/overwrite the results of the processed data.</p>
  
  <p>When I tried to overwrite the dataset org.apache.hadoop.mapred.FileAlreadyExistsException stops the execution.</p>
  
  <p>I set the Spark property <code>set("spark.files.overwrite","true")</code> , but there is no luck.</p>
  
  <p>How to overwrite or Predelete the files from spark?</p>