This article covers:
Navigate to the Connections page select 'New connection'. Select the 'Databricks' connector. You'll be asked to provide a Server Host Name, Http Path and Token.
/sql/1.0/warehouses/xxxxxxxxxxxabc-12345678-abcd.cloud.databricks.comAfter connecting, you can now select, connect and visualize your Databricks data.
Please refer to the examples in our developer documentation to find out how to create a connection to Databricks via our API.
Notes: Make sure to whitelist Luzmo's range of IP addresses in your Databricks server if external connections are blocked as described here.
Once you have connected your Databricks you can add datasets as explained here. You can select one or multiple datasets as available in your Databricks and link them in Luzmo to ensure they can be used together in a dashboard. Also make sure to check out this article on Preparing your data for analytics.
To find out how to add datasets using our API, please refer to this example in our developer documentation.
When generating an Authorization token to grant a user acces to your embedded dashboards it is possible to override the data source properties in the authorization request to dynamically use different properties. Find out more about connection overrides.
The fields available for overriding a Databricks connection are as follows:
schema.table.Our developer documentation has more info about connection overrides and an example of a Databricks connection overrides.
Example code demonstrating how to override the Databricks connection:
Account connection properties can be accessed as:
{
"account_overrides": {
"< connection id >": {
"properties": {
"token": "Override User Access Token",
"httppath": "Override HTTP Path",
"serverhostname": "Override Server Host Name"
}
}
}
}
Databricks uses a 3-namespace address system, Catalog.Schema.Table. When using account overrides, these parameters can be accessed per dataset as:
{
"account_overrides": {
"< connection id >": {
"datasets": {
"< dataset id >": {
"schema": "< Override Databricks Catalog >",
"table": "< Override Databricks Schema >.< Override Databricks Table >"
}
}
}
}
}
| Data Type in Databricks | Data Type in Luzmo |
|---|---|
| BIGINT | numeric |
| BINARY | numeric |
| DECIMAL(p,s) | numeric |
| DOUBLE | numeric |
| FLOAT | numeric |
| INT | numeric |
| SMALLINT | numeric |
| TINYINT | numeric |
| TIMESTAMP | datetime |
| TIMESTAMP_NTZ | datetime |
| DATE | datetime |
| INTERVAL | datetime |
| BOOLEAN | hierarchy |
| VOID | hierarchy |
| STRING | hierarchy |