title: how to handle the Exception in spark map() function?
body: <p>I want to ignore Exception in map() function , for example:</p>
  
  <pre><code>rdd.map(_.toInt)
  </code></pre>
  
  <p>where rdd is a <code>RDD[String]</code>.</p>
  
  <p>but if it meets non-number string, it will failed.</p>
  
  <p>what is the easist way to ignore any Exception and ignore that line? (I do not want to use filter to handle exception, because there may be so many other exceptions...)</p>