title: Spark / Cassandra / Datastax connector : How to debug JavaRDD content?
body: <p>I've set up on my laptop a small 3 nodes spark cluster with the DSE 4.6 and ccm tools. I've created a basic keyspace (ks) and a table (chaine) where I've stored strings. I've written a basic java app which uses the Datastax spark-cassandra-connector-java_2.10.</p>
  
  <p>When I try to store in JavaRDD the content of this table with that piece of code :</p>
  
  <pre><code>   JavaRDD&lt;String&gt; cassandraRowsRDD = javaFunctions(sc).cassandraTable("ks", "chaine")
               .map(new Function&lt;CassandraRow, String&gt;() {
                   @Override
                   public String call(CassandraRow cassandraRow) throws Exception {
                       return cassandraRow.toString();
                   }
               });
      System.out.println("Data as CassandraRows: \n" + StringUtils.join(cassandraRowsRDD.collect().toArray(), "\n"));
  </code></pre>
  
  <p>When I execute this app, I do not see any output on the console with the whole content of my table. If I add a println in the overriden call function, I could catch some element which are located on the master node but do not see the data on other nodes of the cluster.</p>
  
  <p>So how could I debug the content of cassandraRowsRDD by printing the string content on the console screen please. Thanks for your help.</p>
  
  <p>Nicolas</p>