title: Spark: saveAsTextFile without compression
body: <p>By default, newer versions of Spark use compression when saving text files. For example: </p>
  
  <pre><code>val txt = sc.parallelize(List("Hello", "world", "!"))
  txt.saveAsTextFile("/path/to/output")
  </code></pre>
  
  <p>will create files in <code>.deflate</code> format. It's quite easy to change compression algorithm, e.g. for <code>.gzip</code>:</p>
  
  <pre><code>import org.apache.hadoop.io.compress._
  val txt = sc.parallelize(List("Hello", "world", "!"))
  txt.saveAsTextFile("/path/to/output", classOf[GzipCodec])
  </code></pre>
  
  <p>But is there a way to <strong>save RDD</strong> as a plain text files, i.e. <strong>without any compression</strong>?</p>