<?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: Databricks Asset Bundles complex variable for cluster configuration substitute in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90881#M38018</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121453"&gt;@jonyvp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This won't work. The&amp;nbsp;${var.my_cluster} can substitute just one individual value.&lt;BR /&gt;With variable you can substitute specific fields, but you cannot substitue the entire cluster configuration object at once. Thus the error.&lt;BR /&gt;&lt;BR /&gt;Check the article on how to override cluster settings:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/cluster-override.html" target="_blank" rel="noopener"&gt;Override cluster settings in Databricks Asset Bundles | Databricks on AWS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 11:40:15 GMT</pubDate>
    <dc:creator>filipniziol</dc:creator>
    <dc:date>2024-09-18T11:40:15Z</dc:date>
    <item>
      <title>Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90864#M38011</link>
      <description>&lt;P&gt;Using this page of the &lt;A href="https://docs.databricks.com/en/dev-tools/bundles/variables.html#define-a-complex-variable" target="_self"&gt;DAB docs,&lt;/A&gt;&amp;nbsp;I tried to substitute cluster configuration by a variable. That way, I want to predefine different job cluster configurations. Doing exactly what is used in the docs yields this error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error: failed to load [...]/specific_job.yml: error unmarshaling JSON: json: cannot unmarshal object into Go struct field Variable.variables.default of type string&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 10:16:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90864#M38011</guid>
      <dc:creator>jonyvp</dc:creator>
      <dc:date>2024-09-18T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90876#M38015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121453"&gt;@jonyvp&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;could you share your .yml?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 11:25:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90876#M38015</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-18T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90878#M38016</link>
      <description>&lt;P&gt;I do an include of the yml in my databricks.yml. The yml pasted below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;variables&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;my_cluster&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;description&lt;/SPAN&gt;: &lt;SPAN&gt;"My cluster definition"&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;type&lt;/SPAN&gt;: complex&lt;BR /&gt;    &lt;SPAN&gt;default&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;spark_version&lt;/SPAN&gt;: &lt;SPAN&gt;"13.2.x-scala2.11"&lt;BR /&gt;&lt;/SPAN&gt;      &lt;SPAN&gt;node_type_id&lt;/SPAN&gt;: &lt;SPAN&gt;"Standard_DS3_v2"&lt;BR /&gt;&lt;/SPAN&gt;      &lt;SPAN&gt;num_workers&lt;/SPAN&gt;: 2&lt;BR /&gt;      &lt;SPAN&gt;spark_conf&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;spark.speculation&lt;/SPAN&gt;: true&lt;BR /&gt;        &lt;SPAN&gt;spark.databricks.delta.retentionDurationCheck.enabled&lt;/SPAN&gt;: false&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;resources&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;jobs&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;my_job&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"my_job"&lt;BR /&gt;&lt;/SPAN&gt;      &lt;SPAN&gt;max_concurrent_runs&lt;/SPAN&gt;: 1&lt;BR /&gt;      &lt;SPAN&gt;job_clusters&lt;/SPAN&gt;:&lt;BR /&gt;        - &lt;SPAN&gt;job_cluster_key&lt;/SPAN&gt;: my_cluster_key&lt;BR /&gt;          &lt;SPAN&gt;new_cluster&lt;/SPAN&gt;: ${var.my_cluster}&lt;BR /&gt;      &lt;SPAN&gt;tasks&lt;/SPAN&gt;:&lt;BR /&gt;        - &lt;SPAN&gt;task_key&lt;/SPAN&gt;: my_job&lt;BR /&gt;          &lt;SPAN&gt;spark_python_task&lt;/SPAN&gt;:&lt;BR /&gt;            &lt;SPAN&gt;python_file&lt;/SPAN&gt;: /Workspace/Shared/.bundle/[...]/specific_task.py&lt;BR /&gt;          &lt;SPAN&gt;job_cluster_key&lt;/SPAN&gt;: my_cluster_key&lt;BR /&gt;          &lt;SPAN&gt;libraries&lt;/SPAN&gt;:&lt;BR /&gt;            - &lt;SPAN&gt;whl&lt;/SPAN&gt;: ../dist/*.whl&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2024 11:30:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90878#M38016</guid>
      <dc:creator>jonyvp</dc:creator>
      <dc:date>2024-09-18T11:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90881#M38018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121453"&gt;@jonyvp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This won't work. The&amp;nbsp;${var.my_cluster} can substitute just one individual value.&lt;BR /&gt;With variable you can substitute specific fields, but you cannot substitue the entire cluster configuration object at once. Thus the error.&lt;BR /&gt;&lt;BR /&gt;Check the article on how to override cluster settings:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/cluster-override.html" target="_blank" rel="noopener"&gt;Override cluster settings in Databricks Asset Bundles | Databricks on AWS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 11:40:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90881#M38018</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-18T11:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90882#M38019</link>
      <description>&lt;P&gt;Hi filipniziol, according to this docs, it should be possible?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/variables.html#define-a-complex-variable" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/variables.html#define-a-complex-variable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 11:42:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90882#M38019</guid>
      <dc:creator>jonyvp</dc:creator>
      <dc:date>2024-09-18T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90884#M38021</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121453"&gt;@jonyvp&lt;/a&gt;&amp;nbsp;, wow, that's something new to me! Thanks for sharing!&lt;BR /&gt;The error though is about inability to convert your object to string, so it expects a string.&lt;BR /&gt;Are you using the newest databricks cli? Maybe that's a relatively new feature and you need to use the up-to-date cli&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:07:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90884#M38021</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-18T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90887#M38022</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117376"&gt;@filipniziol&lt;/a&gt;&amp;nbsp;that's it! Upgrading the CLI ( 0.209.1 -&amp;gt; 0.228.0 ) did the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:24:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90887#M38022</guid>
      <dc:creator>jonyvp</dc:creator>
      <dc:date>2024-09-18T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles complex variable for cluster configuration substitute</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90889#M38024</link>
      <description>&lt;P&gt;Amazing! Great!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:42:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-complex-variable-for-cluster/m-p/90889#M38024</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-18T12:42:14Z</dc:date>
    </item>
  </channel>
</rss>

