Databricks Lakehouse Federation enables organizations to query and integrate data from multiple sources without requiring data movement. It allows federated queries across databases, data warehouses, and lakehouses, providing a unified interface for data analysis and management within Databricks. When combined with CData Connect AI, it enables seamless access to Zendesk data for data virtualization, while also supporting data lineage and fine-grained access control.
This article explains how to use CData Connect AI to establish a live connection to Zendesk and how to access live Zendesk data from the Databricks platform.
CData Connect AI offers a seamless SQL Server, cloud-to-cloud interface for Zendesk, enabling you to effortlessly create dashboards and visualizations using live Zendesk data in Databricks. While building visualizations, Databricks requires SQL queries to retrieve the necessary data. With built-in optimized data processing, CData Connect AI pushes all supported SQL operations (such as filters and JOINs) directly to Zendesk, utilizing server-side processing for fast and efficient data retrieval of Zendesk data.
Configure Zendesk connectivity for Databricks in CData Connect AI
To work with Zendesk data in Databricks - Lakehouse Federation, you need to connect to Zendesk from Connect AI and provide user access to the connection.
-
Log into Connect AI, click Sources, and then click Add Connection
π Adding a Connection
- Select "Zendesk" from the Add Connection panel
π Selecting a data source
-
Enter the necessary authentication properties to connect to Zendesk.
Connecting to Zendesk
To connect, set the URL and provide authentication. The URL is your Zendesk Support URL: https://{subdomain}.zendesk.com.
Authenticating to Zendesk
You can authenticate using the Basic or OAuth methods.
Using Basic Authentication
To use Basic authentication, specify your email address and password or your email address and an API token. Set User to your email address and follow the steps below to provide the Password or ApiToken.
- Enable password access in the Zendesk Support admin interface at Admin > Channels > API.
- Manage API tokens in the Zendesk Support Admin interface at Admin > Channels > API. More than one token can be active at the same time. Deleting a token deactivates it permanently.
Using OAuth Authentication
See the Getting Started guide in the CData driver documentation for an authentication guide.
π Configuring a connection (Salesforce is shown)
-
Click Save & Test
-
Navigate to the Permissions tab in the Add Zendesk Connection page and update the User-based permissions.
π Updating permissions
Add a Personal Access Token
When connecting to Connect AI through the REST API, the OData API, or the Virtual SQL Server, a Personal Access Token (PAT) is used to authenticate the connection to Connect AI. It is best practice to create a separate PAT for each service to maintain granularity of access.
-
Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
-
On the Settings page, go to the Access Tokens section and click Create PAT.
-
Give the PAT a name and click Create.
π Creating a new PAT
-
The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured and a PAT generated, you are ready to connect to Zendesk data from Databricks.
Connecting live Zendesk data in Databricks
Follow these steps to establish a connection from Databricks to the CData Connect AI Virtual SQL Server API.
- Log into Databricks.
- Navigate to SQL Warehouses and start any warehouse of your choice.
π Start SQL Warehouse
- In the navigation pane, select Catalog. Click and select Create a connection.
π Create a connection
- In the Connection basics section (or Step 1 of Set up connection page), enter the following connection details and click Next:
- Connection name: a user-defined connection name.
- Connection type: select SQL Server from the drop-down list.
- Auth type: select Username and password.
π Add connection basics details
- In the Authentication section (or Step 2), enter the required authentication details, and click Next:
- Host: tds.cdata.com
- Port: 14333
- User: enter your CData Connect AI username, displayed in the top-right corner of the CData Connect AI interface. For example, [email protected]
- Password: enter the PAT generated and copied in the previous section.
π Add authentication details
- In the Connection details section (or Step 3), enable the Trust server certificate checkbox and select the appropriate Application intent. Click Create Connection.
π Add connection details
- In the Catalog basics section (or Step 4), enter the required details and click Create catalog:
- Catalog name: enter a name of your choice
- Connection: this will be the Databricks connection you defined earlier
- Database: enter your Zendesk connection name (for example, Zendesk1)
π Add catalog basics details
- In the Access section (or Step 5), assign the Workspace, User access rights, and Grant read or edit privileges to the catalog.
π Add the access rights
π Grant the access rights
- Click Next > Save to save all the details for the catalog.
π Save the catalog details and set up the connection
Access the catalog and visualize live Zendesk data in Databricks
To access the newly created catalog and create a dashboard to visualize live Zendesk data in Databricks, follow these steps:
- Select the catalog and expand it. A list of tables from Zendesk will appear on the screen.
π Select and expand the catalog
- Choose the desired table and click the Overview tab to view the table metadata.
π Select Overview
π View the table metadata
- Click the Sample Data tab to view real-time data in the table.
π Select Sample Data to view the table data
- Now, click Create at the top right corner and select Dashboard.
π Create a new dashboard
- Manually create a visualization by selecting at least one field in the visualization editor from the widget, or choose one of the visualization options suggested by Databricks AI.
π Create the dashboard manually or using the Databricks AI
- Once the visualization is created, edit the details in the widget settings of the dashboard.
π Visualization is created
- Click Publish to publish the dashboard report.
π Publish the dashboard
Live access to Zendesk data from cloud applications
At this stage, you have established a direct, cloud-to-cloud connection to live Zendesk data in Databricks. This enables you to create dashboards to monitor and visualize your data seamlessly.
For more details on accessing live data from over 100 SaaS, Big Data, and NoSQL sources through cloud applications like Databricks, visit our Connect AI page. As always, let us know if you have any questions during your evaluation. Our world-class CData Support Team is always available to help!