<?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 Cluster configuration with library dependency using DABS in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/120838#M46257</link>
    <description>&lt;P&gt;I am trying to create a cluster configuration using DABS and defining library dependencies.&lt;/P&gt;&lt;P&gt;My yaml file looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
clusters:
project_Job_Cluster:
cluster_name: "Project Cluster"
spark_version: "16.3.x-cpu-ml-scala2.12"
node_type_id: "Standard_DS3_v2"
#num_workers: 0
autotermination_minutes: 20
spark_conf:
"spark.databricks.delta.preview.enabled": "true"
"spark.databricks.cluster.profile": "singleNode"
"spark.master": "local[*, 4]"
custom_tags:
"Project": "Project"

libraries:
- pypi:
package: "databricks-sql-connector"
- pypi:
package: "python-docx"&lt;/LI-CODE&gt;&lt;P&gt;The cluster configuration is recognised and it creates it but without the specified libraries and I get a warning:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Warning: unknown field: libraries at resources.clusters.project_Job_Cluster in resources/project job cluster.yml:16:7"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which leads me to conclude the I cannot use "libraries" in cluster config?What is the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 16:50:12 GMT</pubDate>
    <dc:creator>sparklez</dc:creator>
    <dc:date>2025-06-03T16:50:12Z</dc:date>
    <item>
      <title>Creating Cluster configuration with library dependency using DABS</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/120838#M46257</link>
      <description>&lt;P&gt;I am trying to create a cluster configuration using DABS and defining library dependencies.&lt;/P&gt;&lt;P&gt;My yaml file looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
clusters:
project_Job_Cluster:
cluster_name: "Project Cluster"
spark_version: "16.3.x-cpu-ml-scala2.12"
node_type_id: "Standard_DS3_v2"
#num_workers: 0
autotermination_minutes: 20
spark_conf:
"spark.databricks.delta.preview.enabled": "true"
"spark.databricks.cluster.profile": "singleNode"
"spark.master": "local[*, 4]"
custom_tags:
"Project": "Project"

libraries:
- pypi:
package: "databricks-sql-connector"
- pypi:
package: "python-docx"&lt;/LI-CODE&gt;&lt;P&gt;The cluster configuration is recognised and it creates it but without the specified libraries and I get a warning:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Warning: unknown field: libraries at resources.clusters.project_Job_Cluster in resources/project job cluster.yml:16:7"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which leads me to conclude the I cannot use "libraries" in cluster config?What is the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 16:50:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/120838#M46257</guid>
      <dc:creator>sparklez</dc:creator>
      <dc:date>2025-06-03T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Cluster configuration with library dependency using DABS</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/120856#M46262</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84469"&gt;@sparklez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're encountering this issue because the libraries field is not valid in the cluster configuration.&lt;BR /&gt;Libraries need to be specified at the job level, not the cluster level.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 1: Job-Level Libraries (Recommended)&lt;/STRONG&gt;&lt;BR /&gt;Move the libraries section to your job configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRALVA_0-1748985240647.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17319iA6F7E14B297E9BB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRALVA_0-1748985240647.png" alt="LRALVA_0-1748985240647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Option 2: All-Purpose Cluster with Libraries:&lt;/STRONG&gt;&lt;BR /&gt;If you need an all-purpose cluster with libraries, create it separately:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRALVA_1-1748985305389.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17320iDCC870D7136CDDC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRALVA_1-1748985305389.png" alt="LRALVA_1-1748985305389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Key Points:&lt;/STRONG&gt;&lt;BR /&gt;1. Job clusters: Libraries are specified in the job definition&lt;BR /&gt;2. All-purpose clusters: Libraries are installed after cluster creation, typically through job definitions that reference the cluster&lt;BR /&gt;3. The libraries field is not supported in standalone cluster configurations in Databricks Asset Bundles&lt;BR /&gt;The job-level approach (Option 1) is generally preferred as it ensures libraries are installed&lt;BR /&gt;when the job runs and provides better isolation.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 21:15:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/120856#M46262</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2025-06-03T21:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Cluster configuration with library dependency using DABS</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/121140#M46351</link>
      <description>&lt;P&gt;Thank you, this was very clear and informative!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 14:16:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/121140#M46351</guid>
      <dc:creator>sparklez</dc:creator>
      <dc:date>2025-06-06T14:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Cluster configuration with library dependency using DABS</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/121145#M46354</link>
      <description>&lt;P&gt;Welcome&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/84469"&gt;@sparklez&lt;/a&gt;&amp;nbsp;. Happy it is useful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 15:27:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-cluster-configuration-with-library-dependency-using/m-p/121145#M46354</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2025-06-06T15:27:38Z</dc:date>
    </item>
  </channel>
</rss>

