Whenever I use --hive-import argument, I specify a --warehouse-dir as well in my sqoop jobs.
Now, I check my hive tables and data is indeed there but my question is why do I not see any files in warehouse dir using hadoop fs -ls command ?
Sure I do see them when I replace -hive-import and --warehouse-dir with --target-dir .
How does it work? What are the advantages of one over the other?