title: spark javaRDD output to database
body: <p>Please help me understand what would be the best way to save output of <code>spark javaRDD</code> into database?</p>
  
  <p>Should I write spark java code to save <code>RDD</code> into database? What would be drawback of this approach ?</p>
  
  <p>Or I should use <code>sqoop</code> to save output files into database?</p>
  
  <p>Is there any other way to to this?</p>
  
  <p>Thanks</p>