mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 05:51:17 +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:
parent
db89861c0c
commit
fa40fcabea
@ -1207,17 +1207,17 @@ 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))
|
||||||
|| options.doOverwriteHiveTable()
|
|| options.doOverwriteHiveTable()
|
||||||
|| options.doFailIfHiveTableExists()
|
|| options.doFailIfHiveTableExists()
|
||||||
|| (options.getHiveTableName() != null
|
|| (options.getHiveTableName() != null
|
||||||
&& !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");
|
||||||
|
Loading…
Reference in New Issue
Block a user