Connect Replit to Databricks

Replit is an AI-powered development platform where you build and deploy applications using natural language prompts. With the Azure Databricks integration, Replit-hosted apps can query data stored in your Azure Databricks lakehouse.

For example, you can build forecasting dashboards or analytics apps backed by lakehouse data.

Prerequisites

Before you configure the integration, you need the following:

  • A Databricks service principal with access to your workspace.
  • An OAuth secret for the service principal. Save the client ID and secret. The secret is shown only once.
  • An existing SQL warehouse in your workspace. The service principal must have Can Manage access to the SQL warehouse.
  • A Replit account.

Step 1: Get the Azure Databricks connection details

To connect from Replit, you need the following values from your Azure Databricks workspace:

  • Server hostname and HTTP path of your SQL warehouse. See Get connection details for an Azure Databricks compute resource.
  • Client ID: The application ID of your service principal. This is the same value as the client ID displayed when you generated the OAuth secret.
  • Client secret: The OAuth secret you generated for the service principal.

Step 2: Configure the connection in Replit

To connect your Replit app to Azure Databricks, see Create the Databricks connector in Replit in the Replit documentation.

Step 3: Build your app

After you configure the connection, use the Replit Agent to build an app that queries your Azure Databricks data. Select the Databricks App template, then describe the app you want to build in natural language. See Build with Agent in the Replit documentation.

Additional resources