Follow the steps below to configure the Hortonworks ODBC driver on Linux:
1. Install the Hortonworks ODBC files on the Linux system that will host the Strategy Intelligence Server.
2. Create a DSN to the Hortonworks Hive system by manually adding the following entry to the odbc.ini file (this file is located in the Home Directory of the Strategy installation on Linux):
[ODBC Data Sources] SampleHortonDriverHDP=Hortonworks Hive ODBC Driver 32-bit [SampleHortonDriverHDP] Description=Hortonworks Hive ODBC Driver (32-bit) DSN Driver=/usr/lib/hive/lib/native/Linux-i386-32/libhortonworkshiveodbc32.so DriverUnicodeEncoding=2 HOST=<HIVE_HOST_NAME> PORT=10000 Schema=<schema_name> FastSQLPrepare=0 UseNativeQuery=0 HiveServerType=2 HS2AuthMech=2 HS2HostFQDN=<fully_qualified_domain_name> #HS2KrbServiceName=[Hive Server 2 SASL service name] UserName=root
[Driver] DSILogging=0 ErrorMessagesPath=/usr/lib/hive/lib/native/hiveodbc/ErrorMessages/ ODBCInstLib=libodbcinst.so DriverManagerEncoding=UTF-8
# set up the environment for ODBC
#
ODBC_LIBRARY_PATH=/opt/MicroStrategy/install/lib32
mstr_append_path LD_LIBRARY_PATH "${ODBC_LIBRARY_PATH:?}"
export LD_LIBRARY_PATH
SIMBAINI= <MSTR_HOME_FOLDER>/.hortonworks.hiveodbc.ini
export SIMBAINI
#
# ODBC Driver for Hive
#
HIVE_CONFIG='<FULL_PATH_TO_LIB>lib/native/Linux-i386-32'
if [ "${HIVE_CONFIG}" != '<HIVE_CONFIG>' ]; then
export HIVE_CONFIG
mstr_append_path LD_LIBRARY_PATH "${HIVE_CONFIG:?}"/
export LD_LIBRARY_PATH
fi [ODBC Drivers] Hortonworks ODBC driver 32-bit=Installed [Hortonworks ODBC driver 32-bit] Description=Hortonworks Hive ODBC driver (32-bit) Driver=/usr/lib/hive/lib/native/Linux-i386-32/libhortonworkshiveodbc32.so