<?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: Using init scripts on UC enabled shared access mode clusters in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36497#M26148</link>
    <description>&lt;P&gt;Thanks for the quick response. Unfortunately the global init scripts did not work for the multi-user UC cluster. It seems quite a challenge to make a customer library available on such clusters. Are you maybe aware whether init scripts for multi user UC clusters are in the pipeline to be developed in further databricks versions &amp;gt;13.1?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 17:46:42 GMT</pubDate>
    <dc:creator>rsenjins</dc:creator>
    <dc:date>2023-06-30T17:46:42Z</dc:date>
    <item>
      <title>Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3168#M324</link>
      <description>&lt;P&gt;I know that UC enabled shared access mode clusters do not allow init script usage and I have tried multiple workarounds to use the required init script in the cluster(pyodbc-install.sh, in my case) including installing the pyodbc package as a workspace library and using that library in the cluster and also using magic commands to install the init script directly in the notebooks but have received errors with both those workarounds. Is there any other ways to use the init scripts in the UC enabled shared access mode cluster? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the error being received when I try to install the pyodbc library. I am using an admin account as well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Library installation attempted on the driver node of cluster 0516-171623-3i9on4it and failed. Please refer to the following error message to fix the library or contact Databricks support. Error Code: DRIVER_LIBRARY_INSTALLATION_FAILURE. Error Message: org.apache.spark.SparkException: Process List(/bin/su, libraries, -c, bash /local_disk0/.ephemeral_nfs/cluster_libraries/python/python_start_clusterwide.sh /local_disk0/.ephemeral_nfs/cluster_libraries/python/bin/pip install 'pyodbc 4.0.39' --disable-pip-version-check) exited with code 1. WARNING: The directory '/home/libraries/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
ERROR: Invalid requirement: 'pyodbc 4.0.39'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 18:29:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3168#M324</guid>
      <dc:creator>ah0896</dc:creator>
      <dc:date>2023-06-13T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3169#M325</link>
      <description>&lt;P&gt;@Akarsh Hebbar​&amp;nbsp;init scripts are only supported on single user access modes, please use single user access mode and try&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 22:06:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3169#M325</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-06-14T22:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3170#M326</link>
      <description>&lt;P&gt;Hi @Akarsh Hebbar​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 04:37:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3170#M326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-15T04:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3171#M327</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;Thank you for the answer but I do understand that init scripts are not supported on UC shared clusters and are supported only on single user clusters. That's why I wanted to check if there is a workaround to enable the odbc driver on the shared UC cluster.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:58:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3171#M327</guid>
      <dc:creator>ah0896</dc:creator>
      <dc:date>2023-06-15T12:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3172#M328</link>
      <description>&lt;P&gt;@Akarsh Hebbar​&amp;nbsp;by any chance r u customizing libraries, if not try to go with workspace library config as shown in below article &lt;A href="https://docs.databricks.com/libraries/cluster-libraries.html" target="test_blank"&gt;https://docs.databricks.com/libraries/cluster-libraries.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:09:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3172#M328</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-06-16T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3173#M329</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;No I am installing the pyodbc library through the workspace by first installing the library in the workspace and then trying to install it on the cluster and it just fails to install on the cluster and gives the error shown above.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:24:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3173#M329</guid>
      <dc:creator>ah0896</dc:creator>
      <dc:date>2023-06-16T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3174#M330</link>
      <description>&lt;P&gt;@Akarsh Hebbar​&amp;nbsp;can you go with cluster specific(cluster-installed library) and pick runtime 13.1 or above &lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/81i75D4D2C826E728B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:35:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3174#M330</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-06-16T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3175#M331</link>
      <description>&lt;P&gt;@karthik p​&amp;nbsp;Yup. that's the only runtime version that supports library installs so the cluster is on version 13.1.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 15:07:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/3175#M331</guid>
      <dc:creator>ah0896</dc:creator>
      <dc:date>2023-06-16T15:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36458#M26132</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/72939"&gt;@karthik_p&lt;/a&gt;&amp;nbsp;, we encounter this problem. We're having a custom library which we want to use in a convenient way on our multi-user UC cluster. Best case scenario we want to install it by default on the cluster. Although it is not possible to fetch it from our private repository via the libraries interface, and also no init scripts are available. What is the best solution to solve this? We'd rather not install it at every (notebook) instance...&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 11:06:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36458#M26132</guid>
      <dc:creator>rsenjins</dc:creator>
      <dc:date>2023-06-30T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36484#M26142</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/55630"&gt;@aersen&lt;/a&gt;&amp;nbsp;never tried this scenario, but can you create global init script and see if it works, as this script is available for all clusters and looks it should support shared mode also (DBR should be 13.1 and above please) &lt;A href="https://docs.databricks.com/clusters/init-scripts.html" target="_blank"&gt;https://docs.databricks.com/clusters/init-scripts.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 16:21:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36484#M26142</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-06-30T16:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36497#M26148</link>
      <description>&lt;P&gt;Thanks for the quick response. Unfortunately the global init scripts did not work for the multi-user UC cluster. It seems quite a challenge to make a customer library available on such clusters. Are you maybe aware whether init scripts for multi user UC clusters are in the pipeline to be developed in further databricks versions &amp;gt;13.1?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 17:46:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36497#M26148</guid>
      <dc:creator>rsenjins</dc:creator>
      <dc:date>2023-06-30T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36500#M26149</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84159"&gt;@rsenjins&lt;/a&gt;&amp;nbsp;looks response provided by&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/10926"&gt;@KKDataEngineer&lt;/a&gt;&amp;nbsp;should help you, looks he used workspace library config and use workspace lib in cluster should be able to help.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/10926"&gt;@KKDataEngineer&lt;/a&gt;&amp;nbsp;looks custom library config is not possible for workspace level library, did you make any custom changes to during library config and used in shared access mode please. i can see custom changes may not be supported&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 19:02:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36500#M26149</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-06-30T19:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36503#M26150</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/73171"&gt;@ah0896&lt;/a&gt;&amp;nbsp; it worked when using a workspace level shell scipt file and pointing to its path with workspace scope.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:50:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36503#M26150</guid>
      <dc:creator>KKDataEngineer</dc:creator>
      <dc:date>2023-06-30T18:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36504#M26151</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/72939"&gt;@karthik_p&lt;/a&gt;&amp;nbsp; we are still in the preliminary steps on this in our SAAS product. we have not thoroughly tested but have not seen any issues so far. we were able to consistently add libraries to all the clusters with the init scrip in a UC enable workspace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 19:02:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36504#M26151</guid>
      <dc:creator>KKDataEngineer</dc:creator>
      <dc:date>2023-06-30T19:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36505#M26152</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/10926"&gt;@KKDataEngineer&lt;/a&gt;&amp;nbsp;looks custom library config is not possible for workspace level library, did you make any custom changes to during library config and used in shared access mode please. i can see custom changes may not be supported&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 19:03:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36505#M26152</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-06-30T19:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36506#M26153</link>
      <description>&lt;P&gt;No we have not done any custom library configs. You could be right on the limitations.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 19:08:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36506#M26153</guid>
      <dc:creator>KKDataEngineer</dc:creator>
      <dc:date>2023-06-30T19:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36648#M26178</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt; can anyone form databricks confirm on above issue please, there seems to be bit conflict on using custom scripts support&amp;nbsp; on shared access mode cluster with unity catalog enabled please&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 20:23:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/36648#M26178</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-07-01T20:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/37066#M26253</link>
      <description>&lt;P&gt;I'm very interested as well! If not possible, then very curious what is the best practice of installing cluster wide custom libraries on shared access mode clusters with unity catalog&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 08:41:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/37066#M26253</guid>
      <dc:creator>rsenjins</dc:creator>
      <dc:date>2023-07-06T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using init scripts on UC enabled shared access mode clusters</title>
      <link>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/111534#M43926</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-1740976805121.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15173iCB34EEEB5C4978AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="praveenVP_0-1740976805121.png" alt="praveenVP_0-1740976805121.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 04:41:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-init-scripts-on-uc-enabled-shared-access-mode-clusters/m-p/111534#M43926</guid>
      <dc:creator>praveenVP</dc:creator>
      <dc:date>2025-03-03T04:41:01Z</dc:date>
    </item>
  </channel>
</rss>

