+ " in HCatalog jobs for most of the output types except text based "
+ " formats is text. It is better "
+ "to use --hive-import in those cases. For non text formats, ");
}
if (options.doHiveImport()) {
throw new InvalidOptionsException("The " + HCATALOG_TABLE_ARG
+ " option conflicts with the " + HIVE_IMPORT_ARG
+ " option." + HELP_STR);
}
if (options.getTargetDir() != null) {
throw new InvalidOptionsException("The " + TARGET_DIR_ARG
+ " option conflicts with the " + HCATALOG_TABLE_ARG
+ " option." + HELP_STR);
}
if (options.getWarehouseDir() != null) {
throw new InvalidOptionsException("The " + WAREHOUSE_DIR_ARG
+ " option conflicts with the " + HCATALOG_TABLE_ARG
+ " option." + HELP_STR);
}
if (options.isDirect()) {
throw new InvalidOptionsException("Direct import is incompatible with "
+ "HCatalog. Please remove the parameter --direct");
}
if (options.isAppendMode()) {
throw new InvalidOptionsException("Append mode for imports is not "
+ " compatible with HCatalog. Please remove the parameter"
+ "--append-mode");
}
if (options.getExportDir() != null) {
throw new InvalidOptionsException("The " + EXPORT_PATH_ARG
+ " option conflicts with the " + HCATALOG_TABLE_ARG
+ " option." + HELP_STR);
}
if (options.getFileLayout() == SqoopOptions.FileLayout.AvroDataFile) {
throw new InvalidOptionsException("HCatalog job is not compatible with "
+ " AVRO format option " + FMT_AVRODATAFILE_ARG
+ " option." + HELP_STR);
}
if (options.getFileLayout() == SqoopOptions.FileLayout.SequenceFile) {
throw new InvalidOptionsException("HCatalog job is not compatible with "
+ "SequenceFile format option " + FMT_SEQUENCEFILE_ARG
+ " option." + HELP_STR);
}
}