5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 04:11:44 +08:00

SQOOP-1179: Incorrect warning saying --hive-import was not specified when it was specified

(Venkat Ranganathan via Jarek Jarek Cecho)
This commit is contained in:
Jarek Jarcec Cecho 2013-08-22 12:43:12 -07:00
parent db89861c0c
commit fa40fcabea

View File

@ -1207,17 +1207,17 @@ protected void validateHiveOptions(SqoopOptions options)
// Warn about using hive specific arguments without hive import itself
// In HCatalog support some of the Hive options are reused
if (!options.doHiveImport()
&& ((options.getHiveHome() != null
&& (((options.getHiveHome() != null
&& !options.getHiveHome().
equals(SqoopOptions.getHiveHomeDefault())
&& hCatTable == null))
|| options.doOverwriteHiveTable()
|| options.doFailIfHiveTableExists()
|| (options.getHiveTableName() != null
&& !options.getHiveTableName().equals(options.getTableName()))
|| options.doOverwriteHiveTable()
|| options.doFailIfHiveTableExists()
|| (options.getHiveTableName() != null
&& !options.getHiveTableName().equals(options.getTableName()))
|| (options.getHivePartitionKey() != null && hCatTable == null)
|| (options.getHivePartitionValue() != null && hCatTable == null)
|| (options.getMapColumnHive().size() > 0 && hCatTable == null)) {
|| (options.getMapColumnHive().size() > 0 && hCatTable == null))) {
LOG.warn("It seems that you've specified at least one of following:");
LOG.warn("\t--hive-home");
LOG.warn("\t--hive-overwrite");