Configure the Hive ODBC Connector Driver on Linux

The LD_LIBRARY_PATH environment variable must include the paths to:

  • Installed ODBC driver manager libraries
  • Installed The MapR ODBC Driver with SQL Connector for Apache Hive shared libraries
Important: The Linux version of the driver bundles together functionality for both 32-bit and 64-bit environments. Do not include the paths to both 32- and 64-bit shared libraries in LD_LIBRARY PATH at the same time. Only include the path to the shared libraries corresponding to the driver matching the bitness of the client application used. For example, if you are using a 64-bit client application and ODBC driver manager libraries are installed in /usr/local/lib, then set LD_LIBRARY_PATH as follows:
export LD_LIBRARY_PATH=/usr/local/lib/opt/mapr/hiveodbc/lib/64

Refer to your Linux shell documentation for details on how to set environment variables permanently.