Forum Discussion
Databricks Connection Fails Only in Fabric Pipeline
Hello all!
I am trying to create a Pipeline to get data from my Azure Databricks environment. I have an existing connection that I have used with Dataflows and Semantic Models before that works without any issue, but when I select the connection in a Copy Data activity in my pipeline I get the below error message.
Error Message:
ErrorCode=FailedToConnectToDatabricksWorkspace,Failed to connect to Databricks workspace. Error Cluster XXXXX does not exist. Cluster XXXXX does not exist Processed HTTP request failed.
It is important to note the Server hostname and HTTP path are for a serverless SQL Warehouse in databricks, the Warehouse is running, I am authenticating with a PAT, the connection shows as "Online" in the "Manage connections and gateways" screen, and that the connection works for Dataflows and Semantic Models.
Thank you in advance for the help!
10 Replies
- v-priyankataCommunity Support
- BeaBFSuper User
AKemper Hi!
Try to use the Azure Databricks (SQL) connector instead of the regular Databricks connector
-
In Copy Data, when selecting the source, choose:
-
Source type β Databricks (SQL endpoint)
-
Provide the server hostname, HTTP path, and PAT.
-
-
This treats it like a SQL source rather than a cluster-based notebook source.
-
This should work exactly like Dataflows do
BBF
π‘ Did I answer your question? Mark my post as a solution!
π Kudos are appreciated
π₯ Proud to be a Super User!
- BeaBFSuper User
AKemper ok, in Copy Data, Databricks SQL endpoint is not exposed as a first-class source in some versions of ADF/Synapse.
Try to use a JDBC/ODBC connector to query the SQL endpoint
-
Copy Data activity can use generic JDBC instead of the Azure Databricks connector.
-
Example JDBC URL for a SQL endpoint:
jdbc:spark://<ServerHostname>:443/default;transportMode=http;ssl=1;httpPath=<HTTPPath>;AuthMech=3;UID=token;PWD=<PAT>BBF
π‘ Did I answer your question? Mark my post as a solution!
π Kudos are appreciated
π₯ Proud to be a Super User!
-
-
- BeaBFSuper User
AKemper It's true.
1. JDBC URL
Enter the URL without UID/PWD:jdbc:spark://<ServerHostname>:443/default;transportMode=http;ssl=1;httpPath=<HTTPPath>;AuthMech=3(notice no UID/PWD)2. Username fieldPut literally the string:token3. Password fieldPut your Databricks Personal Access Token here.4. Authentication typeChoose Basic authentication (even though itβs token-based β this is how Databricks expects it).BBF
π‘ Did I answer your question? Mark my post as a solution!
π Kudos are appreciated
π₯ Proud to be a Super User!
- AKemperFrequent Visitor
BeaBF I am getting a different error now regarding ODBC drivers.
Error message:
An exception occurred: ODBC: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I am seeing conflicting comments online about how to resolve this so any thoughts you have regarding this would be appreciated.
Thanks!
- BeaBFSuper User
AKemper have you still the problem?
Youβre no longer hitting Databricks-side auth issues; youβre now hitting a driver problem on the ADF/Synapse side.
Use the JDBC connector instead of ODBC(Recommended, no driver installation needed)
-
In ADF Linked Services, choose JDBC (not ODBC).
-
Connection string:
jdbc:spark://<ServerHostname>:443/default;transportMode=http;ssl=1;httpPath=<HTTPPath>;AuthMech=3 -
Username: token
-
Password: <your Databricks PAT>
BBF
π‘ Did I answer your question? Mark my post as a solution!
π Kudos are appreciated
π₯ Proud to be a Super User!
-