title: How to convert an Iterable to an RDD
body: <p>To be more specific, how can i convert a <strong>scala.Iterable</strong> to a <strong>org.apache.spark.rdd.RDD</strong> ?</p>
  
  <p>I have an RDD of <strong>(String, Iterable[(String, Integer)])</strong>
  and i want this to be converted into an <strong>RDD</strong> of <strong>(String, RDD[String, Integer])</strong>, so that i can apply a reduceByKey function to the internal <strong>RDD</strong>.</p>
  
  <p>e.g
  i have an RDD where key is 2-lettered prefix of a person's name and the value is List of pairs of Person name and hours that they spent in an event</p>
  
  <p>my RDD is :</p>
  
  <p><code>
  ("To", List(("Tom",50),("Tod","30"),("Tom",70),("Tod","25"),("Tod",15))
  ("Ja", List(("Jack",50),("James","30"),("Jane",70),("James","25"),("Jasper",15))
  </code></p>
  
  <p>i need the List to be converted to RDD so that i can use accumulate each person's total hours spent. Applying reduceByKey and make the result as 
  <code>
  ("To", RDD(("Tom",120),("Tod","70"))
  ("Ja", RDD(("Jack",120),("James","55"),("Jane",15))
  </code></p>
  
  <p>But i counldn't find any such transformation function. How can i do this ? </p>
  
  <p>Thanks in advance.</p>