cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Response code: 302

Yoshe1101
New Contributor III

When trying to access a Databricks Warehouse from an external workspace I get the following error.

Both, the Warehouse and the workspace are hosted on different AWS subscriptions.

But curiously, with the same script I can access the Databricks Warehouse from a workspace hosted in Azure.

I have tried and there is 443 connectivity from the workspace, but I receive this 302 HTTP error. It definitely looks like a connectivity issue, but I'm running out of ideas.

""

connecting to url [jdbc:databricks://XXXXXXXXX:443/default;transportMode=http;ssl=1;AuthMech=3;httpPath=/sql/1.0/warehouses/XXXXXXX;] and table [XXXXXXXXXXX]

SQLException: [Databricks][DatabricksJDBCDriver](500593) Communication link failure. Failed to connect to server. Reason: HTTP Response code: 302.

Caused by: ErrorException: [Databricks][DatabricksJDBCDriver](500593) Communication link failure. Failed to connect to server. Reason: HTTP Response code: 302.

Caused by: TTransportException: HTTP Response code: 302

""

I appreciate any help or suggestions, thank you!!

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

It is network related issue. Please check the private link, VPC peering, DNS names resolving to ip (from AWS and Azure), and routing of that IP inside AWS. You can also open a support ticket with AWS.

View solution in original post

2 REPLIES 2

Hubert-Dudek
Esteemed Contributor III

It is network related issue. Please check the private link, VPC peering, DNS names resolving to ip (from AWS and Azure), and routing of that IP inside AWS. You can also open a support ticket with AWS.

It was the DNS configuration of the VPC!

Thank you very much @Hubert Dudek​ !

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group