While importing data from Mysql to HDFS with 10 mappers but i want to store a single mapper only. How can we solve this?

syntax

sqoop import --connect jdbc:mysql://localhost:3306/database --table table_name --username root --password root -m 10 --target-dir /aaa

-> My point is i will give 10 mappers fixed , it will store as 10 part-m files as usual… But i requirement is , i want to store data only one part-m file but not with 10 files. How can we solve this problem.


Solution :


i can think of one solution but i never tested this.
copy all 10 part files to your local system in a single file using “GET” command and then upload that single file using “PUT” command.