<?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: Cannot connect to Databricks SQL Endpoint using PHP and ODBC in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27000#M18917</link>
    <description>&lt;P&gt;Thanks for investigating, @Rex Lorenzo​&amp;nbsp;. You are indeed correct, we do not currently have an ARM build. &lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 12:34:53 GMT</pubDate>
    <dc:creator>BilalAslamDbrx</dc:creator>
    <dc:date>2022-03-01T12:34:53Z</dc:date>
    <item>
      <title>Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/26998#M18915</link>
      <description>&lt;P&gt;I am trying to connect to our Databricks SQL endpoint using PHP in a Docker container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I setup my Docker container to download and configure the ODBC driver as specified here:&amp;nbsp;&lt;A href="https://docs.databricks.com/integrations/bi/jdbc-odbc-bi.html#install-and-configure-the-odbc-driver-for-linux" alt="https://docs.databricks.com/integrations/bi/jdbc-odbc-bi.html#install-and-configure-the-odbc-driver-for-linux" target="_blank"&gt;https://docs.databricks.com/integrations/bi/jdbc-odbc-bi.html#install-and-configure-the-odbc-driver-for-linux&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Docker setup is at&amp;nbsp;&lt;A href="https://github.com/rlorenzo/databricks_php" alt="https://github.com/rlorenzo/databricks_php" target="_blank"&gt;https://github.com/rlorenzo/databricks_php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when it try to connect using ODBC from my PHP test script I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Warning: odbc_connect(): SQL error: [unixODBC][FreeTDS][SQL Server]Unable to connect to data source, SQL state S1000 in SQLConnect in /test_connection.php on line 14
ODBC connect failed: S1000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The connection details are correct because I was able to connect to the Databricks SQL endpoint using&amp;nbsp;&lt;A href="https://www.jetbrains.com/datagrip/" alt="https://www.jetbrains.com/datagrip/" target="_blank"&gt;Datagrip&lt;/A&gt;. I can also verify that the ODBC library is properly installed because I can query a Microsoft SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must have the Databricks ODBC Connector misconfigured somehow, but I am clueless. In my view, everything matches the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try using the Databricks driver in my odbc.ini file: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Driver=/opt/simba/spark/lib/64/libsparkodbc_sb64.so&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I get the error &lt;I&gt;Can't open lib '/opt/simba/spark/lib/64/libsparkodbc_sb64.so' : file not found&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the file does exist: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls /opt/simba/spark/lib/64/libsparkodbc_sb64.so
-rwxrwxrwx 1 root root 76265161 Oct 26 20:51 /opt/simba/spark/lib/64/libsparkodbc_sb64.so&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Anything else I should try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also asked this on StackOverflow: &lt;A href="https://stackoverflow.com/questions/71271023/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc" alt="https://stackoverflow.com/questions/71271023/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc" target="_blank"&gt;https://stackoverflow.com/questions/71271023/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 03:06:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/26998#M18915</guid>
      <dc:creator>Rex</dc:creator>
      <dc:date>2022-02-26T03:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/26999#M18916</link>
      <description>&lt;P&gt;The problem was that the Databricks SQL driver does not yet support ARM, which my laptop and Docker container was building for. See&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/69575145/01000-01000-unixodbcdriver-managercant-open-lib-opt-simba-spark-li" alt="https://stackoverflow.com/questions/69575145/01000-01000-unixodbcdriver-managercant-open-lib-opt-simba-spark-li" target="_blank"&gt;('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/opt/simba/spark/lib/64/libsparkodbc_sb64.so' : file not found (0) (SQLDriverConnect)")&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated my repo at&amp;nbsp;&lt;A href="https://github.com/rlorenzo/databricks_php" alt="https://github.com/rlorenzo/databricks_php" target="_blank"&gt;https://github.com/rlorenzo/databricks_php&lt;/A&gt;&amp;nbsp;with a working example and forced the container to build an x86 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will update my repo if Databricks ever supports ARM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 21:50:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/26999#M18916</guid>
      <dc:creator>Rex</dc:creator>
      <dc:date>2022-02-28T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27000#M18917</link>
      <description>&lt;P&gt;Thanks for investigating, @Rex Lorenzo​&amp;nbsp;. You are indeed correct, we do not currently have an ARM build. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 12:34:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27000#M18917</guid>
      <dc:creator>BilalAslamDbrx</dc:creator>
      <dc:date>2022-03-01T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27001#M18918</link>
      <description>&lt;P&gt;@Bilal Aslam​&amp;nbsp; Any plans to offer an ARM build? Or can we get access to the source so we can build one?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 16:36:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27001#M18918</guid>
      <dc:creator>Rex</dc:creator>
      <dc:date>2022-03-01T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27002#M18919</link>
      <description>&lt;P&gt;Also - I think we should have this as a feature request for the same . @Rex Lorenzo​&amp;nbsp; could you please add a feature request from &lt;A href="https://docs.databricks.com/resources/ideas.html" target="test_blank"&gt;https://docs.databricks.com/resources/ideas.html&lt;/A&gt; . &lt;/P&gt;&lt;P&gt;Let me know if you are able to else I will get this added to our internal system&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:40:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27002#M18919</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-03T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27003#M18920</link>
      <description>&lt;P&gt;@Atanu Sarkar​&amp;nbsp;I posted the feature request here &lt;A href="https://ideas.databricks.com/ideas/DBE-I-735" target="test_blank"&gt;https://ideas.databricks.com/ideas/DBE-I-735&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:28:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27003#M18920</guid>
      <dc:creator>Rex</dc:creator>
      <dc:date>2022-03-03T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27004#M18921</link>
      <description>&lt;P&gt;Thanks you so much @Rex Lorenzo​&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:30:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27004#M18921</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-03T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot connect to Databricks SQL Endpoint using PHP and ODBC</title>
      <link>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27005#M18922</link>
      <description>&lt;P&gt;@Rex Lorenzo​&amp;nbsp; the driver is not yet open source (it's definitely something we're looking at). I've chatted to the team that builds drivers, getting an Arm build out is definitely on their roadmap. Unfortunately, I can't give an exact date just yet.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:20:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cannot-connect-to-databricks-sql-endpoint-using-php-and-odbc/m-p/27005#M18922</guid>
      <dc:creator>BilalAslamDbrx</dc:creator>
      <dc:date>2022-03-04T12:20:48Z</dc:date>
    </item>
  </channel>
</rss>

