Model Context Protocol (MCP) finally gives AI models a way to access the business data needed to make them really useful at work. CData MCP Servers have the depth and performance to make sure AI has access to all of the answers.
Try them now for free →Create Databricks-Connected Applications in Appsmith
Connect to Databricks Data via CData Connect Cloud in Appsmith and create custom business applications with real-time access to Databricks data.
Appsmith is an open-source internal tool builder that allows teams to quickly and easily build a UI to help improve their business operations. When combined with CData Connect Cloud, you gain immediate access to Databricks data for business applications. This article outlines the process of connecting to Databricks using Connect Cloud and creating a basic application from Databricks data within Appsmith.
CData Connect Cloud offers a pure SQL Server, cloud-to-cloud interface for Databricks, enabling the creation of business applications directly from live Databricks data within Appsmith, all without the need for data replication to a native database. As you build applications, Appsmith generates SQL queries to gather data. With its inherent optimized data processing capabilities, CData Connect Cloud efficiently channels all supported SQL operations, including filters and JOINs, directly to Databricks. This leverages server-side processing to swiftly deliver the requested Databricks data.
About Databricks Data Integration
Accessing and integrating live data from Databricks has never been easier with CData. Customers rely on CData connectivity to:
- Access all versions of Databricks from Runtime Versions 9.1 - 13.X to both the Pro and Classic Databricks SQL versions.
- Leave Databricks in their preferred environment thanks to compatibility with any hosting solution.
- Secure authenticate in a variety of ways, including personal access token, Azure Service Principal, and Azure AD.
- Upload data to Databricks using Databricks File System, Azure Blog Storage, and AWS S3 Storage.
While many customers are using CData's solutions to migrate data from different systems into their Databricks data lakehouse, several customers use our live connectivity solutions to federate connectivity between their databases and Databricks. These customers are using SQL Server Linked Servers or Polybase to get live access to Databricks from within their existing RDBMs.
Read more about common Databricks use-cases and how CData's solutions help solve data problems in our blog: What is Databricks Used For? 6 Use Cases.
Getting Started
Configure Databricks Connectivity for Appsmith
Connectivity to Databricks from Appsmith is made possible through CData Connect Cloud. To work with Databricks data from Appsmith, we start by creating and configuring a Databricks connection.
-
Log into Connect Cloud, click Connections and click Add Connection
-
Select "Databricks" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Databricks.
To connect to a Databricks cluster, set the properties as described below.
Note: The needed values can be found in your Databricks instance by navigating to Clusters, and selecting the desired cluster, and selecting the JDBC/ODBC tab under Advanced Options.
- Server: Set to the Server Hostname of your Databricks cluster.
- HTTPPath: Set to the HTTP Path of your Databricks cluster.
- Token: Set to your personal access token (this value can be obtained by navigating to the User Settings page of your Databricks instance and selecting the Access Tokens tab).
- Click Create & Test
-
Navigate to the Permissions tab in the Add Databricks Connection page and update the User-based permissions.
Add a Personal Access Token
When connecting to Connect Cloud 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 Cloud. 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 Cloud 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.
- 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, we are ready to connect to Databricks data from Appsmith.
Create an Appsmith Application from live Databricks Data
To establish a connection from Appsmith to the CData Connect Cloud Virtual SQL Server, follow these steps:
Connect to Databricks in Appsmith
- Log in to your Appsmith instance and create a new application.
-
In the new application, open the Data page and select Bring your data.
-
On this page, you can search for Microsoft SQL Server and select it as your data source.
-
Enter a name for the new data source and then enter the following connection settings:
- Host address: tds.cdata.com
- Port: 14333
- Database name: enter the Connection Name of the CData Connect Cloud data source you want to connect to (for example, Databricks1).
- Username: enter your CData Connect Cloud username. This is displayed in the top-right corner of the CData Connect Cloud interface. For example, test@cdata.com.
- Password: enter the PAT you previously generated.
- Click Test configuration to confirm a successful connection, then click Save to save the datasource.
Create a new query
With a connection configured to a datasource, we can add a SQL query to actually retrieve data from the data source.
-
On the screen with the new data source, click New Query.
-
This opens the Query Editor to enter a SQL query to select data. To assist with specifying a SQL query, use the Explorer of CData Connect Cloud to preview the SQL queries and the data you want to retrieve.
-
After creating the SQL query, return to the Query Editor in Appsmith and enter the SQL query, then click Run.
- Once the query successfully runs, all that remains is to set up the Page to display the data retrieved.
Display Databricks data
-
Open the UI tab and click New UI element.
-
Choose a new UI element to grab, then drag and place the element on the page.
-
Click Connect data on the new UI element, then select the query previously created.
-
With the data connected, it is then displayed in the UI element.
Deploy the application
With the Databricks data connected to the UI elements in the application, we can deploy the Application. To do this, click Deploy in the top-right corner of Appsmith, then the application is opened in a seperate window displaying the Databricks data.

Get CData Connect Cloud
To get live data access to 100+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect Cloud today!