<?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: Add policy init_scripts.*.volumes.destination for dlt not working in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50335#M28768</link>
    <description>&lt;P&gt;Still, the error is coming from&amp;nbsp;init_script.sh, so somehow it still ends up being run, even though test-dlt.sh does not reference it. Maybe the cluster already has init_script.sh attached or there is a global script? You could also try to remove the cluster policy init script completely to confirm if it's related to it or not.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 09:35:55 GMT</pubDate>
    <dc:creator>Bogdan</dc:creator>
    <dc:date>2023-11-02T09:35:55Z</dc:date>
    <item>
      <title>Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50252#M28746</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to create a policy to use it for DLTs that are ran with shared clusters, but when i run the DLT with this policy I have an error. Init-script is added to Allowed JARs/Init Scripts.&lt;/P&gt;&lt;P&gt;DLT events error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cluster scoped init script /Volumes/main/default/bp-lakehouse-monitor/script/test-dlt.sh failed: Script exit status is non-zero&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cluster init-scripts logs error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bash: line 11: /Volumes/main/default/bp-lakehouse-monitor/script/init_script.sh: Invalid argument&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/usr/bin/env bash
echo "Loading cluster init script"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Policy Family: Shared Compute&lt;BR /&gt;Policy Overrides:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"cluster_type": {
  "type": "fixed",
  "value": "dlt"
},
"init_scripts.0.volumes.destination": {
  "type": "fixed",
  "value": "/Volumes/main/default/bp-lakehouse-monitor/script/test-dlt.sh"
},
"cluster_log_conf.path": {
  "type": "fixed",
  "value": "dbfs:/cluster-logs/dlt/"
},
"cluster_log_conf.type": {
  "type": "fixed",
  "value": "DBFS"
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was anyone able to run this scenario successfully ? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 10:42:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50252#M28746</guid>
      <dc:creator>costi9992</dc:creator>
      <dc:date>2023-11-01T10:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50284#M28752</link>
      <description>&lt;P&gt;Sounds like init script is being run but it fails. The failure is coming from init_script.sh which is called by test-dlt.sh. So it's something specific to these scripts. The script content does not appear in the post (only the first 2 lines), so I can't tell what is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 16:11:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50284#M28752</guid>
      <dc:creator>Bogdan</dc:creator>
      <dc:date>2023-11-01T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50287#M28753</link>
      <description>&lt;P&gt;Actually thats the entire script,&amp;nbsp;&lt;/P&gt;&lt;P&gt;First i had another script ( which for clusters/jobs works fine, but is not set from policy, but from dbx ui ), but after i saw that error, i thought that it might be something regarding the script and in order to check that i deleted the script content and just add an `echo` in it . And the same error occurred, saying that in line 11 there is an issue, but my script has only two lines ( the ones from the issue, thats all script content ). I double checked the script a couple of times just to be sure the correct content is in volumes uploaded file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 16:36:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50287#M28753</guid>
      <dc:creator>costi9992</dc:creator>
      <dc:date>2023-11-01T16:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50335#M28768</link>
      <description>&lt;P&gt;Still, the error is coming from&amp;nbsp;init_script.sh, so somehow it still ends up being run, even though test-dlt.sh does not reference it. Maybe the cluster already has init_script.sh attached or there is a global script? You could also try to remove the cluster policy init script completely to confirm if it's related to it or not.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 09:35:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50335#M28768</guid>
      <dc:creator>Bogdan</dc:creator>
      <dc:date>2023-11-02T09:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50664#M28857</link>
      <description>&lt;P&gt;Found the issue finally, when pipeline is configured ( created /edited ) in UC workspace, in order to use it with volumes, in "Advanced" section, "Channel" must be set to preview. It wasn't an issue caused by the content of the init script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 15:35:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/50664#M28857</guid>
      <dc:creator>costi9992</dc:creator>
      <dc:date>2023-11-08T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/55264#M30283</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/30934"&gt;@costi9992&lt;/a&gt;I am facing same issue with UC enabled cluster with 13.3 Databricks Runtime.I have uploaded the init shell script in Volume with particular init script allowed by metastore admin.But I get the same error as you stated .When I looked in cluster logs it states the file doesn't exist.But In cluster (Advanced Options -&amp;gt; Init scripts(Preview))I selected the correct script.Please can you help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 16:42:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/55264#M30283</guid>
      <dc:creator>ayush007</dc:creator>
      <dc:date>2023-12-14T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add policy init_scripts.*.volumes.destination for dlt not working</title>
      <link>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/55276#M30287</link>
      <description>&lt;P&gt;Your problem is with All Purpose Compute or with Delta Live Tables ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For DLT in order to have it working with volumes, you must do two things in DLT Settings.&lt;/P&gt;&lt;P&gt;1 - Destination should point to `Unity Catalog`&lt;BR /&gt;2 - Channel must be set on `Preview`&amp;nbsp; (in the bottom of the page )&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For All Purpose Cluster i didn't used policies, but i was able to load init scripts from volumes.&amp;nbsp;&lt;BR /&gt;Your All Purpose Cluster must have the AccessMode = `Shared`.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 22:04:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-policy-init-scripts-volumes-destination-for-dlt-not-working/m-p/55276#M30287</guid>
      <dc:creator>costi9992</dc:creator>
      <dc:date>2023-12-14T22:04:42Z</dc:date>
    </item>
  </channel>
</rss>

