Search

What is the difference between –target-dir and –warehouse-dir arguments while importing and can we use both in the same import command?



target-dir is used to create the directory with the name provided in HDFS but warehouse-dir additionally creates two more sub level directories as HDFS path +/warehouse/dir/(tablename)/+. No we cannot use these two clauses in the same command. These are mutually exclusive.