Install and Configure the Hive ODBC driver - Connect_ETL - 9.13

Connect ETL Installation Guide

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect (ETL, Sort, AppMod, Big Data)
Version
9.13
ft:locale
en-US
Product name
Connect ETL
ft:title
Connect ETL Installation Guide
Copyright
2025
First publish date
2003
ft:lastEdition
2025-01-24
ft:lastPublication
2025-01-24T21:47:52.840000

Ensure you have administrator/root privileges on the computer before you install the driver.

Go to one of the following Hadoop vendor websites and download the Windows 32-bit Hive ODBC driver and associated documentation. For example:

After downloading the file, double-click the file to run the installer.

Follow the installer's instructions and use the default settings.

For additional information about the installation and configuration settings, see the vendor's documentation.

Install on Linux

Go to one of the following Hadoop vendor websites and download the Linux 64-bit Hive ODBC driver and associated documentation. For example:

Continue with Configuring the Hive ODBC driver on Linux.

Configure the Hive ODBC driver on Linux

The Hive ODBC driver installation includes the file, <users-home>/.<vendor>.hiveodbc.ini, which you use to configure the specific vendor's Hive ODBC driver. By default, this file begins with a leading period and gets installed in the user's home directory.

If you decide not to use the default location and file name for .<vendor>.hiveodbc.ini, set an environment variable to locate the file. These examples assume you put the file (without a leading period) in the /etc/ directory:

  • Cloudera:
    • For Cloudera Hive ODBC driver version 2.5.12 and higher: Cloudera: export CLOUDERAHIVEINI=/etc/cloudera.hiveodbc.ini
    • For Cloudera Hive ODBC driver versions prior to 2.5.12: Cloudera: export SIMBAINI=/etc/cloudera.hiveodbc.ini
  • Hortonworks:
    • For Hortonworks Hive ODBC driver version 0.11 and higher:
      export SIMBAINI=/etc/hortonworks.hiveodbc.ini
    • For Hortonworks Hive ODBC driver versions prior to 0.11:
      export SIMBAINI=/etc/hortonworks.hiveodbc.ini
  • MapR:
    export MAPRINI=/etc/mapr.hive.odbc.ini

    Set the following driver manager options in your vendor-specific configuration file, <vendor>.hiveodbc.ini, under the Driver section. The default Connect for Big Data driver manager is unixODBC.

    1. Set DriverManagerEncoding to UTF.-.
    2. Set ODBCInstLib to identify the ODBC installation's shared library for the ODBC driver manager. The Connect for Big Data default location is <connect_install>/lib/libodbcinstSSL.so.
      [Driver]
      DriverManagerEncoding=UTF-16 
      ODBCInstLib=<connect_install>/lib/libodbcinstSSL.so
Ensure that the Hive ODBC driver library is included at the beginning of the system library path, LD_LIBRARY_PATH, by running the following command:
export LD_LIBRARY_PATH=<vendor's-Hive-ODBC-driver-
installation>/lib:$LD_LIBRARY_PATH

The default location Connect for Big Data uses for the .odbcinst.ini ODBC configuration file is <connect_install>/etc. If you decide to use a different location, set the ODBCSYSINI environment variable to the directory containing your file.

Configuration options set in configuration file odbcinst.ini apply to all Hive connections. Create a section for the Hive ODBC driver and set the following options as follows:
[ODBC Drivers]
<vendor> Hive ODBC Driver 64-bit=Installed 
. . . 
[<vendor> Hive ODBC Driver 64-bit] 
Description= <vendor> Hive ODBC Driver (64-bit) 
Driver=/<vendor's-Hive-ODBC-driver-installation>/<vendor’s_Hive_ODBC_library_file>

For additional information about the installation and configuration settings, see the vendor's documentation.