title: How to manipulate this Iterable in spark?
body: <p>I have a rdd:</p>
  
  <pre><code>val input = RDD[(Int, Iterable[(info1, info2)])]
  </code></pre>
  
  <p>what I need is: </p>
  
  <pre><code>RDD[(Int, Array[info2])]
  </code></pre>
  
  <p>now I'm trying </p>
  
  <pre><code>val output = input.mapValue(ele =&gt; ???.toArray)
  </code></pre>
  
  <p>???is something I have difficulty with, I don't know how can I get access to the tuple inside iterable and only take each of them to a array. Or did I do something wrong from choosing mapValue method?</p>