<?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: Library Management via Custom Compute Policies and ADF Job Triggering in Community Articles</title>
    <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/82266#M236</link>
    <description>&lt;P&gt;That is because your compute policy has all these issues: &lt;BR /&gt;1. instance_pool_id might have been set as forbidden please modify that, You need to pass the instance pool id in the compute policy you are using. &lt;BR /&gt;2. For driver instance pool id, please pass the driver instance pool id in your compute policy.&lt;BR /&gt;3. Please pass the correct value for your spot_bid_max_price in your compute policy.&lt;BR /&gt;&lt;BR /&gt;For instance pools, I would suggest create a separate compute policy and use it.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 16:39:32 GMT</pubDate>
    <dc:creator>SashankKotta</dc:creator>
    <dc:date>2024-08-07T16:39:32Z</dc:date>
    <item>
      <title>Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/74383#M128</link>
      <description>&lt;P&gt;This guide is intended for those looking to install libraries on a cluster using a Custom Compute Policy and trigger Databricks jobs from an Azure Data Factory (ADF) linked service. While many users rely on init scripts for library installation, it is recommended to use Custom Compute Policies for this purpose. Custom Compute Policies provide better control and management over library installations and can be configured to ensure compliance with organizational standards.&lt;/P&gt;
&lt;P&gt;Follow these steps to achieve this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Custom Compute Policy&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Navigate to the Policies tab: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Compute &amp;gt; Policies tab&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Create a policy, Navigate to the library and add libraries as per your requirement.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Please note, you can install libraries using jar/wheel/Maven co-ordinates.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;For more details, follow the detailed instructions in the link:&amp;nbsp;&lt;A title="Create and manage compute policies" href="https://docs.gcp.databricks.com/en/admin/clusters/policies.html" target="_self"&gt;Create and manage compute policies&lt;/A&gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;After creating the custom compute policy, you will need to use the policy ID when executing the notebook via Azure Data Factory (ADF).&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2024-06-16 at 12.34.09 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8695iBE9BE82FC89E798F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-16 at 12.34.09 PM.png" alt="Screenshot 2024-06-16 at 12.34.09 PM.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Trigger a Databricks Notebook from ADF&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Use the Custom Compute Policy created in Step 1 to initiate your Databricks notebook via Azure Data Factory (ADF).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Using the ADF Linked service, we can trigger a notebook with our custom policy attached to the job/all-purpose cluster. Navigate to the Advanced option in the linked service and update the policy as shown below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-16 at 12.38.33 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8697i12A6FEE2B9B75A6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-16 at 12.38.33 PM.png" alt="Screenshot 2024-06-16 at 12.38.33 PM.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Summary:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This guide explains how to install libraries on a Databricks cluster using a Custom Compute Policy and trigger Databricks jobs from an Azure Data Factory (ADF) linked service. It details creating a Custom Compute Policy, noting the policy ID, and using this policy ID to execute notebooks via ADF. This method is recommended over using init scripts for library installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 07:35:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/74383#M128</guid>
      <dc:creator>SashankKotta</dc:creator>
      <dc:date>2024-06-16T07:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/75688#M138</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108479"&gt;@SashankKotta&lt;/a&gt;&amp;nbsp;Thank you for sharing!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 09:59:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/75688#M138</guid>
      <dc:creator>Sujitha</dc:creator>
      <dc:date>2024-06-25T09:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/82253#M235</link>
      <description>&lt;P&gt;The policyId doesn't seem to be working when using databricks pool instance. I am getting the following error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Cluster validation error: Validation failed for instance_pool_id, the value cannot be present (is {pool_id}); Validation failed for driver_instance_pool_id, the value cannot be present (is {pool_id}); Validation failed for azure_attributes.spot_bid_max_price from pool, the value must be present&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:46:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/82253#M235</guid>
      <dc:creator>hassan2</dc:creator>
      <dc:date>2024-08-07T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/82266#M236</link>
      <description>&lt;P&gt;That is because your compute policy has all these issues: &lt;BR /&gt;1. instance_pool_id might have been set as forbidden please modify that, You need to pass the instance pool id in the compute policy you are using. &lt;BR /&gt;2. For driver instance pool id, please pass the driver instance pool id in your compute policy.&lt;BR /&gt;3. Please pass the correct value for your spot_bid_max_price in your compute policy.&lt;BR /&gt;&lt;BR /&gt;For instance pools, I would suggest create a separate compute policy and use it.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 16:39:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/82266#M236</guid>
      <dc:creator>SashankKotta</dc:creator>
      <dc:date>2024-08-07T16:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/83119#M241</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108479"&gt;@SashankKotta&lt;/a&gt;&amp;nbsp; for pointing this out. I was able to resolve the instance pool ID issue but spot_bid_max_price is still failing I am getting the following error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Cluster validation error: Validation failed for azure_attributes.spot_bid_max_price from pool, the value must be present&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;here is the policy definition in cluster policy&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"azure_attributes.spot_bid_max_price": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "unlimited",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "defaultValue": 100,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "hidden": false&lt;BR /&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 16:56:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/83119#M241</guid>
      <dc:creator>hassan2</dc:creator>
      <dc:date>2024-08-15T16:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/83759#M250</link>
      <description>&lt;P&gt;It seems, it is expecting a "value" parameter in your policy something like this.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"azure_attributes.spot_bid_max_price": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "unlimited",&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;"value": 100&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"defaultValue": 100,&lt;/SPAN&gt;&lt;SPAN&gt;"hidden": false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If it still fails try to remove the defaultValue parameter in your policy.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 10:17:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/83759#M250</guid>
      <dc:creator>SashankKotta</dc:creator>
      <dc:date>2024-08-21T10:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/93879#M296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/115195"&gt;@hassan2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I had same issue and found solution.&lt;BR /&gt;When I created POOL i created it as On-demand (not spot) and then policy only worked when I removed&amp;nbsp; entire section "&lt;SPAN&gt;azure_attributes.spot_bid_max_price" from policy.&lt;BR /&gt;Looks like "azure_attributes.spot_bid_max_price" only works when you create POOL with SPOT instances only.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 11:31:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/93879#M296</guid>
      <dc:creator>Wojciech_BUK</dc:creator>
      <dc:date>2024-10-14T11:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/112087#M374</link>
      <description>&lt;P&gt;How did you removed the inherited definitions ?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 04:54:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/112087#M374</guid>
      <dc:creator>n1399</dc:creator>
      <dc:date>2025-03-09T04:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Library Management via Custom Compute Policies and ADF Job Triggering</title>
      <link>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/112098#M375</link>
      <description>&lt;P&gt;I tried this way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Compute Policy, instead of using the default Job Compute (since it comes with inherited definitions that cannot be removed, although they can be overridden), I cloned the definitions from Job Compute and created a custom policy. In this custom policy, I removed the 'spot_bid_max_price', and it worked out for me.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 13:07:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/library-management-via-custom-compute-policies-and-adf-job/m-p/112098#M375</guid>
      <dc:creator>n1399</dc:creator>
      <dc:date>2025-03-09T13:07:19Z</dc:date>
    </item>
  </channel>
</rss>

