<?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 Ubuntu 22 ODBC Connectivity Issue with PHP - SQL error: [unixODBC][Driver Manager]Can't open lib in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/ubuntu-22-odbc-connectivity-issue-with-php-sql-error-unixodbc/m-p/50457#M575</link>
    <description>&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;I'm having trouble connecting to Databricks ODBC from Ubuntu 22. I followed the steps documented here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#odbc-linux" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#odbc-linux&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is my odbc.ini file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;[ODBC Data Sources]
Databricks=Databricks ODBC Connector

[Databricks]
Driver=/opt/simba/spark/lib/64/libsparkodbc_sb64.so
Host=server.cloud.databricks.com
Port=443
HTTPPath=sql/protocolv1/o/path/path_value
ThriftTransport=2
SSL=1
AuthMech=3
UID=token
PWD=TokenValuePastedInConfig&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed unixodbc and the Simba spark drivers - no issues during the installation. When I try to connect though, I keep getting the following error, and I gave up searching for answers online:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't open lib '\/opt\/simba\/spark\/lib\/64\/libsparkodbc_sb64.so' : file not found, SQL state 01000 in SQLConnect&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help from someone who has successfully connected to ODBC from Ubuntu, if I'm doing something wrong - thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note - The connection works in Windows&lt;/P&gt;</description>
    <pubDate>Sat, 04 Nov 2023 17:40:12 GMT</pubDate>
    <dc:creator>ParameshM</dc:creator>
    <dc:date>2023-11-04T17:40:12Z</dc:date>
    <item>
      <title>Ubuntu 22 ODBC Connectivity Issue with PHP - SQL error: [unixODBC][Driver Manager]Can't open lib</title>
      <link>https://community.databricks.com/t5/administration-architecture/ubuntu-22-odbc-connectivity-issue-with-php-sql-error-unixodbc/m-p/50457#M575</link>
      <description>&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;I'm having trouble connecting to Databricks ODBC from Ubuntu 22. I followed the steps documented here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#odbc-linux" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#odbc-linux&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is my odbc.ini file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;[ODBC Data Sources]
Databricks=Databricks ODBC Connector

[Databricks]
Driver=/opt/simba/spark/lib/64/libsparkodbc_sb64.so
Host=server.cloud.databricks.com
Port=443
HTTPPath=sql/protocolv1/o/path/path_value
ThriftTransport=2
SSL=1
AuthMech=3
UID=token
PWD=TokenValuePastedInConfig&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed unixodbc and the Simba spark drivers - no issues during the installation. When I try to connect though, I keep getting the following error, and I gave up searching for answers online:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't open lib '\/opt\/simba\/spark\/lib\/64\/libsparkodbc_sb64.so' : file not found, SQL state 01000 in SQLConnect&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help from someone who has successfully connected to ODBC from Ubuntu, if I'm doing something wrong - thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note - The connection works in Windows&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 17:40:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/ubuntu-22-odbc-connectivity-issue-with-php-sql-error-unixodbc/m-p/50457#M575</guid>
      <dc:creator>ParameshM</dc:creator>
      <dc:date>2023-11-04T17:40:12Z</dc:date>
    </item>
  </channel>
</rss>

