mysqlhadoop2sqoop2sqoop

How to import MySQL data to Hadoop file system?


In my system I have database in Mysql. I want to import that to hadoop file system. I found something about Sqoop, but i'm not getting command to do that.


Solution

  • sqoop import --connect jdbc:mysql://mysql-server-name/db_name --username user --password password --table table_name --target-dir target_directory_name -m1

    Hope it helps..