title: How can I force Spark to execute code?
body: <p>How can I force Spark to execute a call to map, even if it thinks it does not need to be executed due to its lazy evaluation?</p>
  
  <p>I have tried to put <code>cache()</code> with the map call but that still doesn't do the trick. My map method actually uploads results to HDFS. So, its not useless, but Spark thinks it is.</p>