If you are using the Hortonworks Hive ODBC driver to integrate Unica Campaign with a big data source, you must configure the
driver after installing it.
Procedure
-
Modify the ODBC.ini file to specify the Hive server information, using the values shown in the
following example. Be sure to customize the items in bold to match your own
configuration.
The default location of odbc.ini file is: /usr/lib/hive/lib/native/hiveodbc/Setup/odbc.ini
-
Enable the unixODBC manager and disable
Generic ODBCInstLib
in the hortonworks.hiveodbc.ini as follows.
The default location of hortonworks.hiveodbc.ini is /usr/lib/hive/lib/native/Linux-amd64-64/hortonworks.hiveodbc.ini.
Comment out the following line by adding a hash character (#) at the beginning: # ODBCInstLib=libiodbcinst.so
Un-comment the following line by removing the hash character (#) at the beginning: ODBCInstLib=/usr/local/unixODBC/lib/libodbcinst.so
-
Edit the Campaign/bin/setenv.sh as follows.
-
Ensure that your LD_LIBRARY_PATH includes the following path: /usr/local/unixODBC/lib
-
Set your ODBCINI variable to point to the correct INI file.
For example:
ODBCINI=/usr/lib/hive/lib/native/hiveodbc/Setup/odbc.ini
export ODBCINII
HORTONWORKSHIVEINI=/usr/lib/hive/lib/native/Linux-amd64-64/hortonworks.hiveodbc.ini
export HORTONWORKSHIVEINI