<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18886#M12595</link>
    <description>&lt;P&gt;We don't think the DNS resolution traffic will go through the Proxy first. Can you try setting below in the host file and see if it connects.&lt;/P&gt;&lt;P&gt;xxxxxxxxxx.azuredatabricks net &amp;lt;IP address&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately you have to ensure your custom DNS servers are able to resolve the host names without any issues.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 03:32:05 GMT</pubDate>
    <dc:creator>User16764241763</dc:creator>
    <dc:date>2022-06-06T03:32:05Z</dc:date>
    <item>
      <title>Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18883#M12592</link>
      <description>&lt;P&gt;I am using the databricks JDBC driver (&lt;A href="https://databricks.com/spark/jdbc-drivers-download" alt="https://databricks.com/spark/jdbc-drivers-download" target="_blank"&gt;https://databricks.com/spark/jdbc-drivers-download&lt;/A&gt;) to connect to Azure databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The connection needs to be routed through a HTTP proxy. I found parameters that can be configured for using the HTTP proxy:&lt;span class="lia-inline-image-display-wrapper" image-alt="databricks jdbc"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1812iEF8BA37196881A9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="databricks jdbc" alt="databricks jdbc" /&gt;&lt;/span&gt;By passing invalid parameters I found that the parameters are parsed by the driver.&lt;/P&gt;&lt;P&gt;Still I see the error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java.sql.SQLException: [Databricks][DatabricksJDBCDriver](700120) Host ....azuredatabricks.net cannot be resolved through DnsResolver com.databricks.client.jdbc.rpc.InternalDnsResolver. Error Message: No such host is known (....azuredatabricks.net)
       at com.databricks.client.jdbc.rpc.CustomDnsResolverLoader.getResolvedHost(Unknown Source)
       at com.databricks.client.hivecommon.api.HiveServer2ClientFactory.createTransport(Unknown Source)
       at com.databricks.client.spark.jdbc.DownloadableFetchClientFactory.createClient(Unknown Source)
       at com.databricks.client.hivecommon.core.HiveJDBCCommonConnection.connectToServer(Unknown Source)
       at com.databricks.client.spark.core.SparkJDBCConnection.connectToServer(Unknown Source)
       at com.databricks.client.hivecommon.core.HiveJDBCCommonConnection.establishConnection(Unknown Source)
       at com.databricks.client.spark.core.SparkJDBCConnection.establishConnection(Unknown Source)
       at com.databricks.client.jdbc.core.LoginTimeoutConnection.connect(Unknown Source)
       at com.databricks.client.jdbc.common.BaseConnectionFactory.doConnect(Unknown Source)
       at com.databricks.client.jdbc.common.AbstractDriver.connect(Unknown Source)
       at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:55)
       at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:355)
       at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:115)
       at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:665)
       at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:544)
       at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:753)
       at cloud.celonis.connector.jdbc.services.DatabaseConnectionService.lambda$getConnection$0(DatabaseConnectionService.java:47)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it seems that the proxy is not used after all.&lt;/P&gt;&lt;P&gt;Do you have any suggestions, what to check and how to make the driver use the proxy? Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 15:32:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18883#M12592</guid>
      <dc:creator>jonasmin</dc:creator>
      <dc:date>2022-06-02T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18884#M12593</link>
      <description>&lt;P&gt;@Jonas Minning​&amp;nbsp;the error message says there is a problem with the DNSresolver. Are you using the default DNS or a custom DNS? Suspect the issue is on the DNS resolution. It would be worth checking with your networking team. If it's a custom DNS, you can try changing it to default and check if this works.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 09:22:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18884#M12593</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-06-03T09:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18885#M12594</link>
      <description>&lt;P&gt;Thanks for your answer @Prabakar Ammeappin​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the thing is that I need to use the proxy, so I would expect the Driver to connect to the proxy first, e.g. resolving the hostname of the proxy instead of the hostname of the databricks host.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 09:55:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18885#M12594</guid>
      <dc:creator>jonasmin</dc:creator>
      <dc:date>2022-06-03T09:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18886#M12595</link>
      <description>&lt;P&gt;We don't think the DNS resolution traffic will go through the Proxy first. Can you try setting below in the host file and see if it connects.&lt;/P&gt;&lt;P&gt;xxxxxxxxxx.azuredatabricks net &amp;lt;IP address&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately you have to ensure your custom DNS servers are able to resolve the host names without any issues.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 03:32:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18886#M12595</guid>
      <dc:creator>User16764241763</dc:creator>
      <dc:date>2022-06-06T03:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18887#M12596</link>
      <description>&lt;P&gt;Thanks for the answer @Arvind Ravish​,&lt;/P&gt;&lt;P&gt;We added the IP to the local host file. &lt;/P&gt;&lt;P&gt;Then the DNS resolver error disappeared and we got a timeout error instead. &lt;/P&gt;&lt;P&gt;This timeout is probably due to firewall which does not allow direct connection from our client to Azure. So, I think we still are facing the issue that the driver does not seem to use the proxy but tries a direct connection instead. &lt;/P&gt;&lt;P&gt;So, I was wondering which conditions need to be fulfilled for the driver to use the proxy. Do you know something around this?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 07:43:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18887#M12596</guid>
      <dc:creator>jonasmin</dc:creator>
      <dc:date>2022-06-07T07:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18888#M12597</link>
      <description>&lt;P&gt;Hi @Jonas Minning​, were you able to find the solution for this issue? We are also facing similar issue.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 07:38:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18888#M12597</guid>
      <dc:creator>Ravikant</dc:creator>
      <dc:date>2022-08-02T07:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18889#M12598</link>
      <description>&lt;P&gt;Hi Ravikant,&lt;/P&gt;&lt;P&gt;unfortunately, we have not found another solution than not using a proxy.&lt;/P&gt;&lt;P&gt;Best, Jonas&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:25:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18889#M12598</guid>
      <dc:creator>jonasmin</dc:creator>
      <dc:date>2022-08-02T08:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error while establishing JDBC connection to Azure databricks via HTTP proxy</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18890#M12599</link>
      <description>&lt;P&gt;Hi @Jonas Minning​&amp;nbsp;, actually I am also having the same issue and when i looked into the driver related documentation I found that the driver currently only supports SOCKS proxies and I believe this is the reason why we are getting this error. So, I wanted to check if there are any other drivers that support HTTP proxies. If anyone has information on such JDBC driver could you please let me know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver that i am currently using is DatabricksJDBC42-2.6.29&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best, Varma&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:45:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-establishing-jdbc-connection-to-azure-databricks-via/m-p/18890#M12599</guid>
      <dc:creator>MS_Varma</dc:creator>
      <dc:date>2023-05-04T12:45:51Z</dc:date>
    </item>
  </channel>
</rss>

