What is the purpose of the '--warehouse-dir' argument in Sqoop import?

Answer

To specify the HDFS directory where imported tables will be placed as subdirectories

Explanation

The '--warehouse-dir' argument in Sqoop import specifies a parent HDFS directory. When importing a table, Sqoop will create a subdirectory within this warehouse directory with the table's name to store the imported data.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list