Question on Sqoop

Hello All ,

What are the differences between the --target-dir and --warehouse-dir in Sqoop ?

Regards ,

–warehouse-dir - A new directory will be created for the table that is being imported under the path mentioned and then data will be copied

–target-dir - Data will be copied to the path specified (no new directory will be created under specified path).


And one more thing, If we specify --target-dir, it should not be present in HDFS.

Generally warehouse-dir is used to load multiple tables data into HDFS.