title: Spark Streaming : Join Dstream batches into single output Folder
body: <p>I am using Spark Streaming to fetch tweets from twitter by creating a StreamingContext as :<br/> <code>val ssc = new StreamingContext("local[3]", "TwitterFeed",Minutes(1))</code><br/></p>
  
  <p>and creating twitter stream as :<br/>
  <code>val tweetStream = TwitterUtils.createStream(ssc, Some(new OAuthAuthorization(Util.config)),filters)</code></p>
  
  <p>then saving it as text file <br/>
  <code>tweets.repartition(1).saveAsTextFiles("/tmp/spark_testing/")</code></p>
  
  <p>and the problem is that the tweets are being saved as folders based on batch time but I need all the data of each batch in a same folder.</p>
  
  <p>Is there any workaround for it?</p>
  
  <p>Thanks</p>