<?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 Jobs REST Api - Create new Job with a new Cluster, and install a Maven Library on the Cluster in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34520#M25262</link>
    <description>&lt;P&gt;I would need to use the Job REST API to create a Job on our databrick Cluster.&lt;/P&gt;&lt;P&gt;At the Job Creation, is possible to specify an existing cluster, or, create a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can forward alot of information to the Cluster, but what I would like to specify is a bunch of Maven Library to install directly on the Cluster itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be possible?&lt;/P&gt;&lt;P&gt;I don't see this configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative I found is use&lt;/P&gt;&lt;P&gt;Cluster API -&amp;gt; Create new Cluster&lt;/P&gt;&lt;P&gt;Library API -&amp;gt; Install a new Library on Cluster&lt;/P&gt;&lt;P&gt;Jobs API -&amp;gt; Create a new Job and run on the Cluster that I just created, but it feels a little bit cumbersome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 07:13:54 GMT</pubDate>
    <dc:creator>antoniodavideca</dc:creator>
    <dc:date>2022-08-16T07:13:54Z</dc:date>
    <item>
      <title>Jobs REST Api - Create new Job with a new Cluster, and install a Maven Library on the Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34520#M25262</link>
      <description>&lt;P&gt;I would need to use the Job REST API to create a Job on our databrick Cluster.&lt;/P&gt;&lt;P&gt;At the Job Creation, is possible to specify an existing cluster, or, create a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can forward alot of information to the Cluster, but what I would like to specify is a bunch of Maven Library to install directly on the Cluster itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be possible?&lt;/P&gt;&lt;P&gt;I don't see this configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative I found is use&lt;/P&gt;&lt;P&gt;Cluster API -&amp;gt; Create new Cluster&lt;/P&gt;&lt;P&gt;Library API -&amp;gt; Install a new Library on Cluster&lt;/P&gt;&lt;P&gt;Jobs API -&amp;gt; Create a new Job and run on the Cluster that I just created, but it feels a little bit cumbersome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 07:13:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34520#M25262</guid>
      <dc:creator>antoniodavideca</dc:creator>
      <dc:date>2022-08-16T07:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Jobs REST Api - Create new Job with a new Cluster, and install a Maven Library on the Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34521#M25263</link>
      <description>&lt;P&gt;@Antonio Davide Cali​&amp;nbsp;You can use the existing cluster in your json to use it for the job.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1619iADD11407EE3DAACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;To update or push libraries to the job, you can use the &lt;A href="https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsUpdate" alt="https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsUpdate" target="_blank"&gt;JobsUpdate API&lt;/A&gt;. As you want to push libraries to the cluster, you can push them using the new setting and add your libraries there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1606i1AD6715ED6460FEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:14:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34521#M25263</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-08-16T09:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Jobs REST Api - Create new Job with a new Cluster, and install a Maven Library on the Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34522#M25264</link>
      <description>&lt;P&gt;Yes I ended up with this solution. &lt;/P&gt;&lt;P&gt;Re-reading the Docs, (not super clear honestly regarding this), when you forward a `git_source` field, you also have to create a Task inside Tasks as `notebook_task`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My confusion was because I thought that `Tasks` was not needed when `git_source` was present, and the field `libraries` was present only at Tasks level &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 06:51:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jobs-rest-api-create-new-job-with-a-new-cluster-and-install-a/m-p/34522#M25264</guid>
      <dc:creator>antoniodavideca</dc:creator>
      <dc:date>2022-08-17T06:51:41Z</dc:date>
    </item>
  </channel>
</rss>

