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 DataBricks ODBC Driver : 2.08.00.1002
Download link : https://www.databricks.com/spark/odbc-drivers-archive
- RHEL DataBricks ODBC Driver : 2.8.2.1013-1
Download link : https://www.databricks.com/spark/odbc-drivers-archive
Windows:
- 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.
- 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>
- 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 - Test the connection using isql or the Campaign CxnTest and odbctest utility.
- 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.