title: How do I print the contents of an ApacheSpark RDD in my terminal?
body: <p>This is my first time using Scala and ApacheSpark for a project. I'm trying to print the contents of an matrix when I run my code in the terminal, but nothing I try is working so far.</p>
  
  <p>Instead I only get this printed:</p>
  
  <pre><code>org.apache.spark.mllib.linalg.distributed.MatrixEntry;@71870da7
  org.apache.spark.mllib.linalg.distributed.CoordinateMatrix@1dcca8d3
  </code></pre>
  
  <p>I just using <code>println()</code> but when I use <code>collect()</code>, that doesn't give  a good result either. </p>