Connect to a Delta Lake instance
In the premium version of Databricks, it is possible to control table access. If that's the case, the user must be granted the following data object privileges:
- for reverse-engineering: READ_METADATA and SELECT on the tables and views
- for forward-engineering (apply to instance): rights to CREATE/UPDATE schema, table, and view: CREATE on the CATALOG, and either OWN or both USAGE and CREATE on the schema, tables and views.
Connecting a Databricks instance on one of the cloud providers requires to declare the connections settings and a personal access token.

You should consult this page for more information on finding Databricks workspace details.
Note
The connection must be established with compute clusters, i.e. not with the SQL Warehouse which uses a different API which we do not support. It is not currently possible to connect using only a Serverless compute. The problem, if we don't leverage the compute cluster, is that many functions of our reverse-engineering process are not supported by the API. We will lose at least the reverse-engineering of views and of Bloom filters, plus maybe other things.
To get the cluster ID, click the Clusters tab in sidebar and then select a cluster name. The cluster ID is the number after the /clusters/ component in the URL of this page, and before the ?o=:
https://<databricks-instance>/#/setting/clusters/<cluster-id>
In the following screenshot, the cluster ID is 0522-122550-st68dyc7

Authentication
Personal Access Token
Hackolade Studio can use the Databricks REST API, and requires that an access token be issued in the Databricks console under User Settings > Generate New Token. For more information, please consult this page. The access token must be pasted in the field below. Access token management is described here.

OAuth authorization code flow (PCKE)
OAuth sign-in replaces a Databricks personal access token when you reverse-engineer or run a script in a Databricks workspace. If configured for OAuth, Hackolade Studio opens your browser to sign in when you connect. You need Hackolade version v8.13.8 and above to have this feature.
On the Authentication tab, you choose one of two OAuth methods:
- Microsoft Entra ID via authorization code flow (PKCE), for Azure Databricks only. You sign in with your work account.
- OAuth authorization code flow (PKCE), for any cloud provider. An account admin registers a public application in the Databricks account console, and you paste its client ID in Hackolade Studio.
Both methods use authorization code with PKCE. Personal access token remains available as a legacy option.
Sign in with Microsoft Entra ID (Azure Databricks)
Use this method when the cloud provider is Azure Databricks.
- Open
Tools > Reverse-Engineer > Delta Lake tables.... In Delta Lake Connections, create or edit a connection. - On the Connection tab, set Cloud provider to Azure Databricks, then set Workspace URL, Cluster id, and optionally Catalog name and Schema name.
- On the Authentication tab, set Authentication method to Microsoft Entra ID via authorization code flow (PKCE)
- Save the connection, then choose Test connection or start the reverse-engineering. Hackolade Studio opens your browser on the Microsoft sign-in page. After you sign in, the browser returns to
http://localhost:30424/oauthand Studio continues the connection.
Important
Important: this method is only for Azure Databricks. If the cloud provider is Databricks on AWS, Databricks runtime on GCP, or Databricks runtime, the connection stops before the browser opens. Use OAuth authorization code flow (PCKE) instead, or change the cloud provider.
The first sign-in in a customer Microsoft Entra tenant can stop until an administrator consents to the Hackolade application. When that happens, Hackolade Studio shows a message with an admin consent link. An Azure administrator opens that link, grants consent for the tenant, then you retry the connection.
Sign in with a Databricks OAuth application
Use this method when you have a client ID from a public OAuth application in the Databricks account console. It works for Azure Databricks, Databricks on AWS, Databricks on GCP, and Databricks runtime.
Register the application in Databricks
An account admin registers a public OAuth application in the Databricks account console. The application has a client ID and no client secret. Hackolade Studio then uses that client ID when a user connects.
- Open the account console for your cloud, not the workspace:
- Click the Settings icon in the sidebar.
- Open the App connections tab, then click on Custom apps.
- Click Add connection.
- Enter a name, for example
Hackolade Studio. - In Redirect URLs, enter exactly
http://localhost:30424/oauth. - For Access scopes, select
all-apisandoffline_access. - Leave the access-token and refresh-token lifetimes at their defaults unless your account requires other values.
- Leave Generate a client secret cleared. A secret is only for a confidential client. Hackolade Studio signs in with PKCE and does not use one.
- Click Add.
- In the Connection created dialog, copy the Client ID.
Databricks documents the same steps under Enable custom OAuth applications using the Databricks UI.
Enter the connection in Hackolade Studio
Open Tools > Reverse-Engineer > Delta Lake tables.... In Delta Lake Connections, create or edit a connection.
On the Connection tab, set:
- Cloud provider, for example, Azure Databricks
- Workspace URL (e.g.:
https://<workspace-id>.azuredatabricks.net) - Cluster id
- Catalog name and Schema name if you want to limit the scope; both are optional
On the Authentication tab, set Authentication method to OAuth authorization code flow (PCKE), then paste the client ID into Client id.
Important
Port 30424 must be free on your machine when you connect. If another program is already listening on it, the sign-in fails. The redirect URL does not move to another port.
The error shown in the UI will be the following: Cannot start the local authentication callback server: port 30424 is already in use. Close the application using this port and try again.
ADLS credentials passthrough
For Databricks on Azure, you may have tables using Azure Data Lake Storage which requires additional authentication for Databricks to access it. In such case, you may need to declare ADLS credentials passthrough:

You may want to read more about ADLS credential passthrough.