<?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: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111532#M43925</link>
    <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;Below workaround was efficient to me&lt;/P&gt;&lt;P&gt;1) pyodbc-install.sh is uploaded in a Volume&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) the shared cluster is able to navigate to the Volume to select the init script&lt;/P&gt;&lt;P&gt;3) the Databricks runtime is 15.4 LTS&lt;/P&gt;&lt;P&gt;4) the Allowlist has been updated to allow the init script&lt;/P&gt;&lt;P&gt;5) the cluster spins up with no problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;6) the pyodbc==5.2.0 library has been installed (although it made no difference) but&lt;/P&gt;&lt;P&gt;If you are using from ADF use below volumes option and provide ADF SP access to volume path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="praveenVP_0-1740976702463.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15172i3622D9C93438AAA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="praveenVP_0-1740976702463.png" alt="praveenVP_0-1740976702463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 04:38:45 GMT</pubDate>
    <dc:creator>praveenVP</dc:creator>
    <dc:date>2025-03-03T04:38:45Z</dc:date>
    <item>
      <title>UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not found</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/97820#M39562</link>
      <description>&lt;P&gt;Hey Databricks!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Trying to use the pyodbc init script in a Volume in UC on a shared compute cluster but receive error:&amp;nbsp;&lt;SPAN&gt;"[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)"). I followed the instructions here which seem straightforward:&amp;nbsp;&lt;A href="https://www.databricks.com/blog/shared-clusters-unity-catalog-win-introducing-cluster-libraries-python-udfs-scala-machine" target="_blank" rel="noopener"&gt;Shared Clusters in Unity Catalog | Databricks Blog&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1) pyodbc-install.sh is uploaded in a Volume&amp;nbsp; 2) the shared cluster is able to navigate to the Volume to select the init script 3) the Databricks runtime is 13.3 LTS 4) the Allowlist has been updated to allow the init script 5) the cluster spins up with no problem 6) the &lt;A target="_blank"&gt;pyodbc==5.2.0&lt;/A&gt; library has been installed (although it made no difference) but 7) it errors with&amp;nbsp;&lt;SPAN&gt;"[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Seems like it can't read or find the pyodbc file so doesn't find any drivers. Although the cluster can navigate to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it a permissions issue? What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Benedetta&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Benni_0-1730842808643.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12664i5C74D4B84EE6FCE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Benni_0-1730842808643.png" alt="Benni_0-1730842808643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Benni_1-1730842895078.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12665i7FC2901E80A19123/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Benni_1-1730842895078.png" alt="Benni_1-1730842895078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 21:42:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/97820#M39562</guid>
      <dc:creator>Benni</dc:creator>
      <dc:date>2024-11-05T21:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/97994#M39580</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/131215"&gt;@Benni&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Ensure that the ODBC Driver 17 for SQL Server is installed on the Databricks cluster, you can verify this by running the following command in a notebook cell on the cluster to check if the driver is available in the system:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!ls /opt/microsoft/msodbcsql17/lib64/&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;if the msodbcsql17 library is missing, it indicates the driver was not installed properly.&lt;/P&gt;&lt;P&gt;Let me know if you need further assistance!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 16:23:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/97994#M39580</guid>
      <dc:creator>agallard2</dc:creator>
      <dc:date>2024-11-06T16:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98009#M39581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/47388"&gt;@agallard2&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply - but it's not installed on the cluster.....because it seems like it's not reading the pyodbc init script (which also has the&amp;nbsp;&lt;SPAN&gt;msodbcsql17 driver in it)&lt;/SPAN&gt; in the Volume in the Unity Catalog. Why can't it read the file from the Volume?. If I install the init script globally, and use a single use cluster that works. I'm trying to make a shared cluster that can connect to Azure SQL Database (among other things), and the instructions say to place the init script in a Volume when it's Unity Catalog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Benedetta&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 19:14:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98009#M39581</guid>
      <dc:creator>Benni</dc:creator>
      <dc:date>2024-11-06T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98122#M39615</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Databricks&amp;nbsp; - can you help me understand why the init script in the Volume doesn't work for a shared cluster?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Benedetta&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 17:36:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98122#M39615</guid>
      <dc:creator>Benni</dc:creator>
      <dc:date>2024-11-07T17:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98142#M39620</link>
      <description>&lt;P&gt;May you should have a look here for global init script:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/init-scripts/" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/init-scripts/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 21:38:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98142#M39620</guid>
      <dc:creator>h_h_ak</dc:creator>
      <dc:date>2024-11-07T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98476#M39730</link>
      <description>&lt;P&gt;Hi h_h_ak,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sure, sure. I've already done that. We can't use global init scripts with Shared Clusters and UC. Seems it has to be installed in Volume or cloud storage. How come mu shared cluster can't read the pyodbc script in the volume?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 14:29:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/98476#M39730</guid>
      <dc:creator>Benni</dc:creator>
      <dc:date>2024-11-12T14:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111284#M43838</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am also facing similar issue . is there any working alternate solution ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 16:08:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111284#M43838</guid>
      <dc:creator>praveenVP</dc:creator>
      <dc:date>2025-02-26T16:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111291#M43842</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! A workaround we discovered is to wrap the pyodbc script in some error handling code. Our particular script was throwing some exceptions/outputs which were ignored by Databricks in a notebook, as well as when installed as a global init script. Apparently....the cluster could not ignore the exceptions when the pyodbc script was installed in the Volume. Once the script in the Volume stopped "outputting".....the shared cluster was able to read it and start up.&lt;/P&gt;&lt;P&gt;Hope that helps you!&lt;/P&gt;&lt;P&gt;Benni&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 16:56:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111291#M43842</guid>
      <dc:creator>Benni</dc:creator>
      <dc:date>2025-02-26T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: UC, pyodbc, Shared Cluster, and  :Can't open lib 'ODBC Driver 17 for SQL Server' : file not foun</title>
      <link>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111532#M43925</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;Below workaround was efficient to me&lt;/P&gt;&lt;P&gt;1) pyodbc-install.sh is uploaded in a Volume&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) the shared cluster is able to navigate to the Volume to select the init script&lt;/P&gt;&lt;P&gt;3) the Databricks runtime is 15.4 LTS&lt;/P&gt;&lt;P&gt;4) the Allowlist has been updated to allow the init script&lt;/P&gt;&lt;P&gt;5) the cluster spins up with no problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;6) the pyodbc==5.2.0 library has been installed (although it made no difference) but&lt;/P&gt;&lt;P&gt;If you are using from ADF use below volumes option and provide ADF SP access to volume path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="praveenVP_0-1740976702463.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15172i3622D9C93438AAA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="praveenVP_0-1740976702463.png" alt="praveenVP_0-1740976702463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 04:38:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/uc-pyodbc-shared-cluster-and-can-t-open-lib-odbc-driver-17-for/m-p/111532#M43925</guid>
      <dc:creator>praveenVP</dc:creator>
      <dc:date>2025-03-03T04:38:45Z</dc:date>
    </item>
  </channel>
</rss>

