<?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 Creating job under the all-purpose cluster type policy always failed in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/creating-job-under-the-all-purpose-cluster-type-policy-always/m-p/87121#M37384</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Here is the policy I just created:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "node_type_id": {
        "defaultValue": "Standard_D8s_v3",
        "type": "allowlist",
        "values": [
            "Standard_D8s_v3",
            "Standard_D16s_v3"
        ]
    },
    "num_workers": {
        "hidden": false,
        "type": "fixed",
        "value": 1
    },
    "cluster_type": {
        "hidden": false,
        "type": "fixed",
        "value": "all-purpose"
    },
    "azure_attributes.availability": {
        "type": "fixed",
        "value": "SPOT_WITH_FALLBACK_AZURE",
        "hidden": true
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Notice a I make the cluster_type value fixed as “all-purpose”. After the policy been created, I continue try to create a job under this policy&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# The main job for asset_bundle_workflow_demo.

resources:
  jobs:
    asset_bundle_workflow_demo_job:
      name: asset_bundle_workflow_demo_job
      schedule:
        
        # Run every day at 8:37 AM
        quartz_cron_expression: '44 37 8 * * ?'
        timezone_id: Europe/Amsterdam

      tasks:
        - task_key: notebook_task
          job_cluster_key: my_job_cluster
          notebook_task:
            notebook_path: ../src/notebook.ipynb

      job_clusters:
        - job_cluster_key: my_job_cluster
          new_cluster:
            policy_id: xxxxxxxxxxxxxxx
            num_workers: 1
            spark_version: 15.4.x-scala2.12
            node_type_id: Standard_D8s_v3
            cluster_type: all-purpose
            azure_attributes:
              availability: SPOT_WITH_FALLBACK_AZURE
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And here the error message I got whe try to deploy the asset bundle:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning: unknown field: cluster_type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;at resources.jobs.asset_bundle_workflow_demo_job.job_clusters[0].new_cluster&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;in resources/asset_bundle_workflow_demo_job.yml:35:13&lt;/P&gt;&lt;P&gt;Error: terraform apply: exit status 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: cannot create job: Cluster validation error: Validation failed for cluster_type, the value must be all-purpose (is "job")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;with databricks_job.asset_bundle_workflow_demo_job,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;on bundle.tf.json line 63, in resource.databricks_job.asset_bundle_workflow_demo_job:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;63: &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m confused because I just set the cluster_type value in the new_cluster section. What is the wrong with my code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 02:50:57 GMT</pubDate>
    <dc:creator>guangyi</dc:creator>
    <dc:date>2024-09-02T02:50:57Z</dc:date>
    <item>
      <title>Creating job under the all-purpose cluster type policy always failed</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-job-under-the-all-purpose-cluster-type-policy-always/m-p/87121#M37384</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Here is the policy I just created:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "node_type_id": {
        "defaultValue": "Standard_D8s_v3",
        "type": "allowlist",
        "values": [
            "Standard_D8s_v3",
            "Standard_D16s_v3"
        ]
    },
    "num_workers": {
        "hidden": false,
        "type": "fixed",
        "value": 1
    },
    "cluster_type": {
        "hidden": false,
        "type": "fixed",
        "value": "all-purpose"
    },
    "azure_attributes.availability": {
        "type": "fixed",
        "value": "SPOT_WITH_FALLBACK_AZURE",
        "hidden": true
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Notice a I make the cluster_type value fixed as “all-purpose”. After the policy been created, I continue try to create a job under this policy&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# The main job for asset_bundle_workflow_demo.

resources:
  jobs:
    asset_bundle_workflow_demo_job:
      name: asset_bundle_workflow_demo_job
      schedule:
        
        # Run every day at 8:37 AM
        quartz_cron_expression: '44 37 8 * * ?'
        timezone_id: Europe/Amsterdam

      tasks:
        - task_key: notebook_task
          job_cluster_key: my_job_cluster
          notebook_task:
            notebook_path: ../src/notebook.ipynb

      job_clusters:
        - job_cluster_key: my_job_cluster
          new_cluster:
            policy_id: xxxxxxxxxxxxxxx
            num_workers: 1
            spark_version: 15.4.x-scala2.12
            node_type_id: Standard_D8s_v3
            cluster_type: all-purpose
            azure_attributes:
              availability: SPOT_WITH_FALLBACK_AZURE
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And here the error message I got whe try to deploy the asset bundle:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning: unknown field: cluster_type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;at resources.jobs.asset_bundle_workflow_demo_job.job_clusters[0].new_cluster&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;in resources/asset_bundle_workflow_demo_job.yml:35:13&lt;/P&gt;&lt;P&gt;Error: terraform apply: exit status 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: cannot create job: Cluster validation error: Validation failed for cluster_type, the value must be all-purpose (is "job")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;with databricks_job.asset_bundle_workflow_demo_job,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;on bundle.tf.json line 63, in resource.databricks_job.asset_bundle_workflow_demo_job:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;63: &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m confused because I just set the cluster_type value in the new_cluster section. What is the wrong with my code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 02:50:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-job-under-the-all-purpose-cluster-type-policy-always/m-p/87121#M37384</guid>
      <dc:creator>guangyi</dc:creator>
      <dc:date>2024-09-02T02:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating job under the all-purpose cluster type policy always failed</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-job-under-the-all-purpose-cluster-type-policy-always/m-p/87150#M37392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/109070"&gt;@guangyi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This may be related to the fact that DAB does not support this type of clusters. Unfortunately, this is not very well documented but look at below thread. This feature is requested and it should be available in the future:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.databricks.com/t5/data-engineering/creating-all-purpose-cluster-in-data-asset-bundles/td-p/62035" target="_blank"&gt;Creating All Purpose Cluster in Data Asset Bundles - Databricks Community - 62035&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 06:45:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-job-under-the-all-purpose-cluster-type-policy-always/m-p/87150#M37392</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-02T06:45:14Z</dc:date>
    </item>
  </channel>
</rss>

