title: Nested Cogrouped RDD printing: <pyspark.resultiterable.ResultIterable object at ...>
body: <p>I am having some issues with printing/saving the RDD. Here is the sample code:</p>
  
  <pre><code>users_prods_joined = users_grpd.cogroup(prods_grpd) 
  
  users_prods_joined_flattened = users_prods_joined.map(
     lambda (k, mapped): "{0} {1}".format(k,str(mapped)))
  
  users_prods_joined_flattened.saveAsTextFile('users_prods_joined_flattened')
  </code></pre>
  
  <p>The o/p is :</p>
  
  <pre><code>cat users_prods_joined_flattened/part-00* | more
  </code></pre>
  
  <blockquote>
    <p>648018220 pyspark.resultiterable.ResultIterable object at 0x107cc5b50</p>
    
    <p>100341214 pyspark.resultiterable.ResultIterable object at 0x107cc5b50</p>
    
    <p>8429212  pyspark.resultiterable.ResultIterable object at 0x107cc5b50</p>
  </blockquote>
  
  <p>......</p>
  
  <p>I would like to know how to get the actual values rather than <code>pyspark.resultiterable.ResultIterable object at 0x107cc5b50 .....</code></p>