Configuring custom Hive JDBC arguments
Learn how to configure Sqoop to enable users to specify custom Hive JDBC arguments while importing data into Hive using Sqoop. This allows users to set Hive session variables, Hive configuration values, and Hive user variables.
--jdbc-arg
argument in your Sqoop
import command. Use the hiveconf:
prefix to specify Hive configuration
values and the hivevar:
prefix to specify Hive user variables.- 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 JDBC arguments 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.