<?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 Not able create Job via Jobs api in databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15146#M9503</link>
    <description>&lt;P&gt;I am not able to create jobs via jobs API in databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error=INVALID_PARAMETER_VALUE: Job settings must be specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply copied the JSON file and saved it. Loaded the same JSON file and tried to create the job via API but the got the above error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I tried was, copying the JSON details and assigning it to a variable in python databricks and trying to create the job, but got the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings are there in the JSON, but some how the JSON details we are passing to create job post command are not getting in the right format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where I can simply load the JSON details in the databricks notebook and create the job again? I went through their documentation, but there there is no example like how they are inputting the json file in the post command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 09:29:39 GMT</pubDate>
    <dc:creator>Pritam</dc:creator>
    <dc:date>2022-12-22T09:29:39Z</dc:date>
    <item>
      <title>Not able create Job via Jobs api in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15146#M9503</link>
      <description>&lt;P&gt;I am not able to create jobs via jobs API in databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error=INVALID_PARAMETER_VALUE: Job settings must be specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply copied the JSON file and saved it. Loaded the same JSON file and tried to create the job via API but the got the above error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I tried was, copying the JSON details and assigning it to a variable in python databricks and trying to create the job, but got the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings are there in the JSON, but some how the JSON details we are passing to create job post command are not getting in the right format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where I can simply load the JSON details in the databricks notebook and create the job again? I went through their documentation, but there there is no example like how they are inputting the json file in the post command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 09:29:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15146#M9503</guid>
      <dc:creator>Pritam</dc:creator>
      <dc:date>2022-12-22T09:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create Job via Jobs api in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15147#M9504</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below format in your body section -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{ 
&amp;nbsp;
  "name": "Nightly model training", 
&amp;nbsp;
  "new_cluster": { 
&amp;nbsp;
    "spark_version": "7.3.x-scala2.12", 
&amp;nbsp;
    "node_type_id": "Standard_D3_v2", 
&amp;nbsp;
    "num_workers": 10 
&amp;nbsp;
  }, 
&amp;nbsp;
  "libraries": [ 
&amp;nbsp;
    { 
&amp;nbsp;
      "jar": "dbfs:/my-jar.jar" 
&amp;nbsp;
    }, 
&amp;nbsp;
    { 
&amp;nbsp;
      "maven": { 
&amp;nbsp;
        "coordinates": "org.jsoup:jsoup:1.7.2" 
&amp;nbsp;
      } 
&amp;nbsp;
    } 
&amp;nbsp;
  ], 
&amp;nbsp;
  "timeout_seconds": 3600, 
&amp;nbsp;
  "max_retries": 1, 
&amp;nbsp;
  "schedule": { 
&amp;nbsp;
    "quartz_cron_expression": "0 15 22 * * ?", 
&amp;nbsp;
    "timezone_id": "America/Los_Angeles" 
&amp;nbsp;
  }, 
&amp;nbsp;
  "spark_jar_task": { 
&amp;nbsp;
    "main_class_name": "com.databricks.ComputeModels" 
&amp;nbsp;
  } 
&amp;nbsp;
} &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and for header use below one-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/953iC9B13999CC285059/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 09:48:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15147#M9504</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2022-12-22T09:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create Job via Jobs api in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15148#M9505</link>
      <description>&lt;P&gt;My Header and authorization is working fine and i don't want to hard code the body of the json. I am already loading the json and also copying the json in databricks and assigning to a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way your above code works but i don't want to hard code it. I already have some jobs and want to duplicate it in other databrick instance&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 13:34:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15148#M9505</guid>
      <dc:creator>Pritam</dc:creator>
      <dc:date>2022-12-22T13:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create Job via Jobs api in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15149#M9506</link>
      <description>&lt;P&gt;@Pritam Arya​&amp;nbsp;&amp;nbsp;I had the same problem today.  In order to use the JSON that you can get from the GUI in an existing job, in a request to the Jobs API, you want to use just the JSON that is the value of the settings key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 19:52:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/15149#M9506</guid>
      <dc:creator>rAlex</dc:creator>
      <dc:date>2023-04-19T19:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create Job via Jobs api in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/82883#M36763</link>
      <description>&lt;P&gt;databricks jobs get &amp;lt;JOB_ID&amp;gt; -o json | jq '.settings' &amp;gt; /tmp/job.json&lt;BR /&gt;edit&amp;nbsp;/tmp/job.json # job name, etc.&lt;BR /&gt;databricks jobs create --json @/tmp/job.json&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:13:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-job-via-jobs-api-in-databricks/m-p/82883#M36763</guid>
      <dc:creator>takomyr</dc:creator>
      <dc:date>2024-08-13T15:13:06Z</dc:date>
    </item>
  </channel>
</rss>

