bin/sqoop import
--connect jdbc:mysql:/company
--username root
--password *****
--table staff
--target-dir /user/test
--delete-target-dir
--fields-terminated-by "t"
--num-mappers 1
--split-by id //按照id切片,根据上面指定map的个数进行切片

bin/sqoop import
--connect jdbc:mysql:/company
--username root
--password *****
--table staff
--target-dir /user/test
--delete-target-dir
--fields-terminated-by "t"
--num-mappers 1
--split-by id //按照id切片,根据上面指定map的个数进行切片