Configuring custom Hive table properties
Learn how to specify custom Hive table properties for the CREATE TABLE statement that Sqoop uses during the Hive table creation process.
--hive-table-property
argument in your Sqoop import command.For
example, if you have specified the custom Hive table properties with the
"
transactional=true
" and
"transactional_properties=insert_only
" key-value pairs, the
Hive CREATE TABLE
statement is constructed as
follows:CREATE TABLE foo ....
....
TBLPROPERTIES ('transactional'='true', 'transactional_properties'='insert_only');
- Order of precedence
- The configuration set through the Sqoop argument in the command line takes precedence over the configuration specified through Cloudera Manager. If custom Hive table properties are specified through both the command line and Cloudera Manager, the command line Sqoop argument does not entirely overwrite the Cloudera Manager configuration. Instead, the distinct values are retained and the values with matching keys are replaced with arguments specified through the command line Sqoop argument.