http://sqoop.apache.org/
export SQOOP_HOME=/srv/sqoop/ export PATH=$SQOOP_HOME/bin:$PATH
MYSQL轉HDFS-示例
./sqoop import --connect jdbc:mysql://192.168.0.1:3306/mydb --username root --password mypass --table mytable -m 1 --target-dir /mysql/yourtable/$today
HDFS轉MYSQ-示例
./sqoop export --connect jdbc:mysql://192.168.0.1:3306/mydb --username root --password mypass --table mytable --fields-terminated-by ',' --export-dir /mysql/yourtable/$today