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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!