①mysql建表test1
②cd /opt/module/sqoop进入scoop路径
③
bin/sqoop export \ > --connect jdbc:mysql://master:3306/mysql \ > --username root \ > --password 000000 \ > --table test1 \ > --num-mappers 1 \ > --export-dir /user/hive/warehouse/test1 \ > --input-fields-terminated-by ","