Question on Sqoop

#1

Hello All ,

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

Regards ,
Amit

0 Likes

#2

–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).

3 Likes

#3

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

0 Likes

#4

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

0 Likes