title: Best way to import data from MySql to HDFS
body: <p>I need to know is there any way to import data from mysql to HDFS, there are some conditions I need to mention.</p>
  
  <ul>
  <li>I know hbase,hive and sqoop can help me , but I dont wan't any extra layers. Just mapreduce and hadoop java api.</li>
  <li>I also need to update HDFS as data is updated in mySQL.</li>
  </ul>
  
  <p>I need to know best way to import mysql data into HDFS and update in real time.</p>