<?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: New Databricks Driver gives SQLNonTransientConnectionException when trying to connect to Databricks Instance in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19698#M13242</link>
    <description>&lt;P&gt;This looks like due to maintenance on US  . Are you still facing the issue @Sriramkumar Thamizharasan​&amp;nbsp;Is your workspace on eastus and eastus2 ?&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 10:04:07 GMT</pubDate>
    <dc:creator>Atanu</dc:creator>
    <dc:date>2022-05-26T10:04:07Z</dc:date>
    <item>
      <title>New Databricks Driver gives SQLNonTransientConnectionException when trying to connect to Databricks Instance</title>
      <link>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19697#M13241</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;import com.databricks.client.jdbc.DataSource;
&amp;nbsp;
import java.sql.*;
&amp;nbsp;
public class testDatabricks {
    public static void main(String[] args) throws SQLException {
        String dbUrl = "jdbc:databricks://&amp;lt;hostname&amp;gt;:443;HttpPath=&amp;lt;HttpPath&amp;gt;;";
// Copied the hostname and httppath from configuration of instance
        DataSource d = new DataSource();
        d.setURL(dbUrl);
        d.setUserID("token");
        d.setPassword("&amp;lt;access-token&amp;gt;");
// Copied access token from user settings
        Connection conn = d.getConnection();
        Statement s = conn.createStatement();
        ResultSet r = s.executeQuery("show schemas");
        while(r.next()) {
            System.out.println(r.getString("databaseName"));
        }
        System.out.println("Success");
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am trying to execute this code to test connection to my Databricks instance. But I get &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java.sql.SQLNonTransientConnectionException: [Databricks][JDBC](12330) Cannot establish a successful connection with given properties.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;error. Am I missing anything in the setup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, why is the driver guide (Installation and Configuration) missing in then docs folder of the driver?&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 14:57:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19697#M13241</guid>
      <dc:creator>sriramkumar</dc:creator>
      <dc:date>2022-05-25T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: New Databricks Driver gives SQLNonTransientConnectionException when trying to connect to Databricks Instance</title>
      <link>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19698#M13242</link>
      <description>&lt;P&gt;This looks like due to maintenance on US  . Are you still facing the issue @Sriramkumar Thamizharasan​&amp;nbsp;Is your workspace on eastus and eastus2 ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 10:04:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19698#M13242</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-05-26T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: New Databricks Driver gives SQLNonTransientConnectionException when trying to connect to Databricks Instance</title>
      <link>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19699#M13243</link>
      <description>&lt;P&gt;My workspace is in us-west-2 region. I still face the issue. Although, interestingly, if I keep the code same and just change the JDBC URL to start with jdbc:spark:// instead of jdbc:databricks://, the connection is successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, could we get the Installation and Configuration Guide that comes with the driver?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:54:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19699#M13243</guid>
      <dc:creator>sriramkumar</dc:creator>
      <dc:date>2022-05-26T13:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: New Databricks Driver gives SQLNonTransientConnectionException when trying to connect to Databricks Instance</title>
      <link>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19700#M13244</link>
      <description>&lt;P&gt;Looked into the decompiled source and found that only "spark" is added as sub protocol in DataSource class but in Driver class "databricks" is added.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 17:29:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/new-databricks-driver-gives-sqlnontransientconnectionexception/m-p/19700#M13244</guid>
      <dc:creator>sriramkumar</dc:creator>
      <dc:date>2022-05-26T17:29:37Z</dc:date>
    </item>
  </channel>
</rss>

