<?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: Unable to connect to SQL Warehouse from RStudio using U2M authentication in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83893#M3655</link>
    <description>&lt;P&gt;Hi. when I try this I get this new error message after successful browser OAuth authentification.&lt;BR /&gt;&lt;BR /&gt;[Databricks][JDBCDriver](500593) Communication link failure. Failed to connect to server. Reason: HTTP Response code: 403, Error message: PERMISSION_DENIED: You do not have permission to autostart 0812-090825-9uy7yt4i.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 07:44:50 GMT</pubDate>
    <dc:creator>SLohse</dc:creator>
    <dc:date>2024-08-22T07:44:50Z</dc:date>
    <item>
      <title>Unable to connect to SQL Warehouse from RStudio using U2M authentication</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83498#M3634</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;Has anyone encountered the error below, and If yes, how did you solve it? My workspace is setup normally in UC. My workspace also has private endpoint setup. I am authentication over the browser when I run my R code, then right after the error is thrown&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error in dbConnect(drv, url = jdbc_url) :
Unable to connect JDBC to jdbc:databricks://adb-xxxxxx.xx.xxxxx.net:443;httpPath=/sql/1.0/warehouses/xxxxxxxxxx;AuthMech=11;Auth_Flow=2;EnableTokenCache=0;EnableArrow=0;
JDBC ERROR: [Databricks][JDBCDriver](500151) Error setting/closing session: Invalid local Address .&lt;/LI-CODE&gt;&lt;P&gt;I'm getting this while using the R code below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;library(RJDBC)
library(DBI)

setwd("/home")

# Set up JDBC connection parameters

jdbc_url &amp;lt;- "jdbc:databricks://adb-xxxxxx.2.xxxxx.net:443;httpPath=/sql/1.0/warehouses/xxxxxxx;AuthMech=11;Auth_Flow=2;EnableTokenCache=0;EnableArrow=0"

jdbc_driver &amp;lt;- "com.databricks.jdbc.Driver"

# Load the JDBC driver
drv &amp;lt;- RJDBC::JDBC(driverClass = "com.databricks.client.jdbc.Driver",
                   classPath = "DatabricksJDBC42.jar")

# Establish the connection  
conn &amp;lt;- dbConnect(drv, url = jdbc_url)

# Query table
result &amp;lt;- dbGetQuery(conn, "select count(*) from catalog.schema.table")
print(result)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 21:32:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83498#M3634</guid>
      <dc:creator>jmbabazi</dc:creator>
      <dc:date>2024-08-19T21:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to SQL Warehouse from RStudio using U2M authentication</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83724#M3646</link>
      <description>&lt;P&gt;I am facing similar issue when connecting via DBeaver Client (JDBC driver version 2.6.40)&lt;/P&gt;&lt;P&gt;"[Databricks][JDBCDriver](500151) Error setting/closing session: Invalid local Address .&lt;BR /&gt;Invalid local Address"&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 07:28:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83724#M3646</guid>
      <dc:creator>SLohse</dc:creator>
      <dc:date>2024-08-21T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to SQL Warehouse from RStudio using U2M authentication</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83805#M3649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the below connection string for the JDBC driver. Make sure to&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&amp;nbsp;change the&amp;nbsp;&lt;EM&gt;OAuth2ClientId&lt;/EM&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;jdbc:databricks://&amp;lt;workspace url&amp;gt;:443/default;transportMode=http;ssl=1;httpPath=&amp;lt;sql path&amp;gt;;AuthMech=11;OAuth2ClientId=96eecda7-19ea-49cc-abb5-240097d554f5;Auth_Flow=2;EnableTokenCache=0;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Mehdi&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 13:42:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83805#M3649</guid>
      <dc:creator>MehdiModarressi</dc:creator>
      <dc:date>2024-08-21T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to SQL Warehouse from RStudio using U2M authentication</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83893#M3655</link>
      <description>&lt;P&gt;Hi. when I try this I get this new error message after successful browser OAuth authentification.&lt;BR /&gt;&lt;BR /&gt;[Databricks][JDBCDriver](500593) Communication link failure. Failed to connect to server. Reason: HTTP Response code: 403, Error message: PERMISSION_DENIED: You do not have permission to autostart 0812-090825-9uy7yt4i.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 07:44:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/83893#M3655</guid>
      <dc:creator>SLohse</dc:creator>
      <dc:date>2024-08-22T07:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to SQL Warehouse from RStudio using U2M authentication</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/84175#M3674</link>
      <description>&lt;P&gt;This error indicates that the warehouse is not running, and your user may not have the privilege to start it. Try starting the SQL Warehouse from the UI.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 01:00:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/84175#M3674</guid>
      <dc:creator>MehdiModarressi</dc:creator>
      <dc:date>2024-08-26T01:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to SQL Warehouse from RStudio using U2M authentication</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/84227#M3677</link>
      <description>&lt;P&gt;Thanks everyone for the replies. It turned out that this is a known bug and they are working on a fix&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 16:15:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-connect-to-sql-warehouse-from-rstudio-using-u2m/m-p/84227#M3677</guid>
      <dc:creator>jmbabazi</dc:creator>
      <dc:date>2024-08-26T16:15:16Z</dc:date>
    </item>
  </channel>
</rss>

