cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unexpected response from server during a HTTP connection: authorize: cannot authorize peer.

valefar
New Contributor

Hi all,

When attempting to connect to Databricks with Spark ODBC using the regular host ip and port, everything is successful. However, we need to send the connection through an internal proxy service that re-maps the server's endpoint to a local port number (essentially, the host property is replaced with 'localhost' and the port number is replaced with the proxy port). When we do this, we get the error as per the subject. What could be the way to resolve this problem?

Thanks, Valerio

 

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @valefar, Firstly, ensure your connection settings correctly map the server's endpoint to 'localhost' and the appropriate port number through the proxy service. Double-check your connection string or configuration to align with Databricks workspace details. If connecting to a SQL Server database, confirm you're using the correct JDBC URL format with the port set to 1433. Validate that the proxy service is forwarding requests correctly and handling any required authentication or authorization. Verify ODBC driver settings, ensuring the hostname and port are correctly configured. Enable detailed logging to review any specific error messages or unexpected server responses. Test each adjustment carefully, and if issues persist, let me know.

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