Warn when user is importing data into /user/hive/warehouse with flag --hive-import

Details

Description

I've recently seen couple of users who were trying to import data into hive (--hive-import) with --target-dir or --warehouse-dir set to /user/hive/warehouse. Sqoop wasn't designed to directly import data into hive warehouse directory. Instead we're importing data into temporary directory first and then by hive call "LOAD DATA" we're instructing hive to do actual load (move to /user/hive/warehouse).

I would suggest to warn user when he is trying to import data into default hive warehouse directory.

Activity

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:https://reviews.apache.org/r/4364/
-----------------------------------------------------------

Review request for Sqoop, Arvind Prabhakar and Bilung Lee.

Summary
-------

I've add parameter validation fragment that is looking for this incorrect usage and warning user.