5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 05:39:35 +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,7 +1207,7 @@ protected void validateHiveOptions(SqoopOptions options)
// Warn about using hive specific arguments without hive import itself // Warn about using hive specific arguments without hive import itself
// In HCatalog support some of the Hive options are reused // In HCatalog support some of the Hive options are reused
if (!options.doHiveImport() if (!options.doHiveImport()
&& ((options.getHiveHome() != null && (((options.getHiveHome() != null
&& !options.getHiveHome(). && !options.getHiveHome().
equals(SqoopOptions.getHiveHomeDefault()) equals(SqoopOptions.getHiveHomeDefault())
&& hCatTable == null)) && hCatTable == null))
@ -1217,7 +1217,7 @@ protected void validateHiveOptions(SqoopOptions options)
&& !options.getHiveTableName().equals(options.getTableName())) && !options.getHiveTableName().equals(options.getTableName()))
|| (options.getHivePartitionKey() != null && hCatTable == null) || (options.getHivePartitionKey() != null && hCatTable == null)
|| (options.getHivePartitionValue() != 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("It seems that you've specified at least one of following:");
LOG.warn("\t--hive-home"); LOG.warn("\t--hive-home");
LOG.warn("\t--hive-overwrite"); LOG.warn("\t--hive-overwrite");