title: Spark: error: value split is not a member of org.apache.spark.rdd.RDD[String]
body: <p>The code snippet I was trying to execute:</p>
  
  <pre><code>val textfile = sc.textFile("small_file.txt")
              val arr = textfile.split(",")
              for (v &lt;- arr) {
                  println(v)
  </code></pre>
  
  <p>The packages that I included:</p>
  
  <pre><code>import org.apache.spark.SparkContext
  import org.apache.spark.SparkConf
  import org.apache.spark.SparkContext._
  import org.apache.spark.rdd.RDD._
  import org.apache.spark.rdd.RDD
  </code></pre>
  
  <p>The error that I got:</p>
  
  <pre><code>&lt;console&gt;:54: error: value split is not a member of org.apache.spark.rdd.RDD[String]
                  val arr = textfile.split(",")
                                 ^
  </code></pre>
  
  <p>Any lead would be appreciated!!</p>