title: Write data from Hadoop MapReduce job into MySQL
body: <p>I've been parsing log files using MapReduce, but it always outputs a text file named "part-00000" to store my results, and I have to then import <code>part--00000</code> into mysql manually.</p>
  
  <p><strong>Is there an easy way to store MapReduce results directly in MySQL?</strong> For example, how might I store the results of the classic "Word Count" MapReduce program in MySQL directly?</p>
  
  <p>I'm using Hadoop 1.2.1, and the <code>mapred</code> libraries (i.e. <code>org.apache.hadoop.mapred.*</code> instead of <code>org.apache.hadoop.mapreduce.*</code>, and the two are not compatible as far as I'm aware.) I don't have access to Sqoop.</p>