Forum Discussion

AKemper's avatar
AKemper
Frequent Visitor
11 months ago

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-priyankata's avatar
    v-priyankata
    Community Support

    Hi AKemper 

    Thank you for reaching out to the Microsoft Fabric Forum Community.

    BeaBF Thank you so much for your inputs.

    I hope the information provided by users was helpful. If you still have questions, please don't hesitate to reach out to the community.

     

  • 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!

    • AKemper's avatar
      AKemper
      Frequent Visitor

      BeaBF Thank you for the quick reply!

       

      In Copy Data when selecting a source the only Databricks option I have is Azure Databricks which is what is giving me the error.

       

       

      Thank you!

      • BeaBF's avatar
        BeaBF
        Super 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!

  • 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 field
    Put literally the string:
    token
     
    3. Password field
    Put your Databricks Personal Access Token here.
     
    4. Authentication type
    Choose 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!

    • AKemper's avatar
      AKemper
      Frequent 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!

      • BeaBF's avatar
        BeaBF
        Super 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!