title: Spark RDD data selection
body: <p>I am kind of clueless how to do the following in spark. I have a text file which contains data in the following format:</p>
  
  <pre><code>timestamp A,B,C (\n)
  A,B,C (\n)
  A,B,C (\n)
  ...
  timestamp A,B,C (\n)
  A,B,C (\n)
  ...
  </code></pre>
  
  <p>I read it in an RDD with <code>sc.textFile(&lt;path&gt;)</code> which of course treats each line as a separate entry. </p>
  
  <p>How can I separate the timestamp from the first line, so basically create a map of timestamp -> entry1, entry2... where each entry consists of A,B,C? A,B,C are always the same type and <em>not</em> the same value, respectively.</p>