<?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 Unable to access Databricks cluster through ODBC in R in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/unable-to-access-databricks-cluster-through-odbc-in-r/m-p/42931#M881</link>
    <description>&lt;P&gt;We have previously been able to access our Databricks cluster in R using ODBC but it stopped working a couple of months ago and now i can't get it to connect.&lt;/P&gt;&lt;P&gt;I've downloaded the latest drivers and added the right information in odbc/odbcinst files but i still get an error when i try to connect.&lt;/P&gt;&lt;P&gt;Below is the code i'm running and the error i get:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;conn &amp;lt;- odbcConnect("Databricks")&lt;/SPAN&gt;&lt;SPAN class=""&gt;Warning messages:
1: In RODBC::odbcDriverConnect("DSN=Databricks") :
  [RODBC] ERROR: state HY000, code 1170, message [unixODBC][Simba][DriverSupport] (1170) Unexpected response received from server. Please ensure the server host and port specified for the connection are correct.
2: In RODBC::odbcDriverConnect("DSN=Databricks") : ODBC connection failed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And here's the details from my odbc.ini file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ODBC Data Sources]
Databricks=Databricks ODBC Connector

[Databricks]
Driver=Simba Spark ODBC Driver 64-bit
Server=our_server.com
HOST=our_server.com
PORT=443
SparkServerType=3
ThriftTransport=2
SSL=1
AuthMech=3
UID=token
PWD=my_token&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And below is from the odbcinst file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Simba Spark ODBC Driver 64-bit]
Description=Simba Spark ODBC Driver (64-bit)
Driver=/opt/simba/spark/lib/64/libsparkodbc_sb64.so&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have no issues on the same server to access the cluster from Python using the&amp;nbsp;databricks-sql-connector so there should not be any issues with connectivity.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 07:57:11 GMT</pubDate>
    <dc:creator>uberweiss</dc:creator>
    <dc:date>2023-08-31T07:57:11Z</dc:date>
    <item>
      <title>Unable to access Databricks cluster through ODBC in R</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/unable-to-access-databricks-cluster-through-odbc-in-r/m-p/42931#M881</link>
      <description>&lt;P&gt;We have previously been able to access our Databricks cluster in R using ODBC but it stopped working a couple of months ago and now i can't get it to connect.&lt;/P&gt;&lt;P&gt;I've downloaded the latest drivers and added the right information in odbc/odbcinst files but i still get an error when i try to connect.&lt;/P&gt;&lt;P&gt;Below is the code i'm running and the error i get:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;conn &amp;lt;- odbcConnect("Databricks")&lt;/SPAN&gt;&lt;SPAN class=""&gt;Warning messages:
1: In RODBC::odbcDriverConnect("DSN=Databricks") :
  [RODBC] ERROR: state HY000, code 1170, message [unixODBC][Simba][DriverSupport] (1170) Unexpected response received from server. Please ensure the server host and port specified for the connection are correct.
2: In RODBC::odbcDriverConnect("DSN=Databricks") : ODBC connection failed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And here's the details from my odbc.ini file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ODBC Data Sources]
Databricks=Databricks ODBC Connector

[Databricks]
Driver=Simba Spark ODBC Driver 64-bit
Server=our_server.com
HOST=our_server.com
PORT=443
SparkServerType=3
ThriftTransport=2
SSL=1
AuthMech=3
UID=token
PWD=my_token&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And below is from the odbcinst file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Simba Spark ODBC Driver 64-bit]
Description=Simba Spark ODBC Driver (64-bit)
Driver=/opt/simba/spark/lib/64/libsparkodbc_sb64.so&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have no issues on the same server to access the cluster from Python using the&amp;nbsp;databricks-sql-connector so there should not be any issues with connectivity.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 07:57:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/unable-to-access-databricks-cluster-through-odbc-in-r/m-p/42931#M881</guid>
      <dc:creator>uberweiss</dc:creator>
      <dc:date>2023-08-31T07:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Databricks cluster through ODBC in R</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/unable-to-access-databricks-cluster-through-odbc-in-r/m-p/43040#M888</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thanks for your help, generated a new token and for some reason that seemed to have done the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 07:37:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/unable-to-access-databricks-cluster-through-odbc-in-r/m-p/43040#M888</guid>
      <dc:creator>uberweiss</dc:creator>
      <dc:date>2023-09-01T07:37:50Z</dc:date>
    </item>
  </channel>
</rss>

