community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

How To: Configure a Databricks Connection

Alteryx
Alteryx
Created on

How To: Configure a Databricks Connection

 

How to find the relevant information and configure a Databricks connection through the Manage In-DB Connections window. The Databricks connection includes bulk loading capabilities that allow users to load large data sets faster. 

 

Prerequisites

 

  • Alteryx Designer
  • The Simba Spark ODBC Driver available on the Alteryx Driver Downloads page.
  • Databricks
    • Note that the screenshots were taken on AWS Databricks, but this is virtually the same for Azure Databricks

 

Procedure

If you have access to the Databricks console you'd like to connect to, you will be able to gather all of the necessary information to connect by yourself. If you do not have access to the console, you might need to ask your administrator for assistance.

  1. To configure the Spark ODBC Driver:Spark on Databricks - how to configure Simba Spark ODBC driver.png 
  2. Setting up the In-DB connection in Alteryx: 

    • The Read Tab:
      Capture.PNG
    • The Write Tab: 

      Capture.PNG

Details on Bulk Loading

 

In Alteryx, use the Data Stream In tool to load data into Databricks. Select the connection you just created in Steps 1 and 2 above.

When you run the workflow, a temporary avro file will be created in the /FileStore/tables location in Databricks using the information provided on the Write tab in the connection. Using the information provided on the Read tab in the connection, a table will be created in Databricks and then the data will be moved from the temporary file to the table via a 'LOAD DATA INPATH' statement. 

A successful run will contain the following messages (this example is for a temporary table in Alteryx):

Capture.PNG

 

 

Comments
Atom

Will this work with IAMRole auth to S3?

Alteryx Partner

Do I need to input https:// in the Host address in the ODBC connection?

When I don't input https:// I get this error:

FAILED!

[Simba][Hardy] (34) Error from server: connect() failed: errno = 10060.

 

And when I input it, I get this one:

FAILED!

[Simba][Hardy] (34) Error from server: Could not resolve host for client socket..

 

Any help appreciated...