Preparing DataBricks database as user database datasource for Unica Campaign

About this task

Unica Campaign supports DataBricks as User databases. For AIX and SUSE we do not support DataBricks as User Database.

DataBricks ODBC Driver Installation

Install the DataBricks ODBC Driver where the Unica Campaign analytical server (listener) is installed.
Windows:
  1. Create DSN for DataBricks User database in Windows ODBC Manager:
    • Open ODBC Administrator GUI
    • Click Add button
    • From the list select Simba Spark ODBC Driver 2.08.00.1002 Driver.
    • Click the Finish button. This will open a new windows Create a new Data Source to DataBricksDB.
    • Mention DSN name in Data Source Name.
    • Mention Spark Server Type
    • Mention appropriate Host(s), Port and DataBase
    • Mention User name and Password. Click Test button to check db connection
    • Mention Thrift Transport as HTTP and give respective values to HTTP Options and SSL Options.
    • Click on OK.
  2. Import DatabricksTemplate.xml in Unica Campaign data source template.

Linux

Create ODBC DSN for DataBricks:

Sample example odbc.ini file entry
[Databricks]
Driver=<DRIVER_PATH>/libsparkodbc_sb64.so
Host=<HOST NAME>
Port=443
HTTPPath=<HTTP PATH>
SSL=1
ThriftTransport=2
Schema=<SCHEMA NAME>
AuthMech=3
UID=token
PWD=<TOKEN VALUE>
  1. Setup up setenv.sh with below entries.
    LD_LIBRARY_PATH=<CAMPAIGN_HOME>/bin:<DB HOME LIB PATH>:<DataBricks DRIVER LIB PATH>:<OS LIB PATH>
    export LD_LIBRARY_PATH
    ODBCINI=/etc/odbc.ini
    export ODBCINI
    ODBCINST=/etc/odbcinst.ini
    export ODBCINST
    
  2. Test the connection using isql or the Campaign CxnTest and odbctest utility.
  3. Import DatabricksTemplate.xml datasource template for DataBricks and configure it.
Note: For DataBricks, we recommended you to use the DataBricks Loader to get optimum performance. To configure the loader, contact HCL Unica Support team for assistance.