<?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: Issue with Creating and Running Databricks Jobs with new databricks cli v0.214.0 in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/issue-with-creating-and-running-databricks-jobs-with-new/m-p/71392#M3057</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reference links for the solution.&lt;/P&gt;&lt;P&gt;I found the solution mentioned in this &lt;FONT color="#2272b4"&gt;&lt;U&gt;&lt;A href="https://github.com/databricks/databricks-sdk-go/discussions/384" target="_blank"&gt;https://github.com/databricks/databricks-sdk-go/discussions/384&amp;nbsp;&lt;/A&gt;&lt;/U&gt;&lt;/FONT&gt;&amp;nbsp;GitHub. By using the get-run API, I was able to retrieve the running status of my job along with a detailed description.&lt;/P&gt;&lt;P&gt;Following the guidance and using the `get-run option, I managed to get the job running status and description successfully.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 05:50:53 GMT</pubDate>
    <dc:creator>Kishor</dc:creator>
    <dc:date>2024-06-03T05:50:53Z</dc:date>
    <item>
      <title>Issue with Creating and Running Databricks Jobs with new databricks cli v0.214.0</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-creating-and-running-databricks-jobs-with-new/m-p/68724#M3001</link>
      <description>&lt;P&gt;Hi Databricks Support,&lt;/P&gt;&lt;P&gt;I'm encountering an issue with creating and running jobs on Databricks. Here are the details:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem Description:&lt;/STRONG&gt;&lt;BR /&gt;When attempting to create and run a job using the old JSON (which was successfully used to create and run jobs using the old Databricks CLI version 0.17.8), I encountered an error. Although job creation was successful, running the job resulted in the following error: "Error: No task is specified."&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps Taken:&lt;/STRONG&gt;&lt;BR /&gt;Created a job using the old JSON file with the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;databricks jobs create --json &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/42767"&gt;@sample&lt;/a&gt;.json&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job creation was successful, but running the job resulted in an error.&lt;/P&gt;&lt;P&gt;Updated the JSON file based on a sample from the Databricks GitHub repository and tried creating and running the job again. This time, both job creation and job run commands worked fine.&lt;/P&gt;&lt;P&gt;However, I encountered another error when attempting to retrieve the run output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;databricks jobs get-run-output 89359307425900&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The error message received was: "Error: Retrieving the output of runs with multiple tasks is not supported. Please retrieve the output of each individual task run instead."&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JSON Details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Initial JSON (used for job creation with old Databricks CLI v0.17.8):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;{
"libraries": [],
"name": "nabu-sparkbot-custom-code-arg-test",
"max_concurrent_runs": 1,
"timeout_seconds": 259200,
"access_control_list": [],
"notebook_task": {
"notebook_path": "/dbfs/tmp/sample/sample.py"
},
"new_cluster": {
"spark_version": "10.4.x-scala2.12",
"node_type_id": "Standard_DS3_v2",
"enable_elastic_disk": true,
"num_workers": 2,
"spark_conf": {
"spark.dynamicAllocation.enabled": "false"
},
"runtime_engine": "STANDARD"
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Updated JSON (used for successful job creation and run):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;{
"name": "nabu-sparkbot-custom-code-arg-test",
"tasks": [
{
"job_cluster_key": "create-job-without-workers-cluster",
"task_key": "create-job-without-workers-cluster1",
"libraries": [],
"max_concurrent_runs": 1,
"timeout_seconds": 259200,
"notebook_task": {
"notebook_path": "/dbfs/tmp/sample/sample.py"
}
}
],
"job_clusters": [
{
"job_cluster_key": "create-job-without-workers-cluster",
"new_cluster": {
"spark_version": "10.4.x-scala2.12",
"node_type_id": "Standard_DS3_v2",
"enable_elastic_disk": true,
"num_workers": 2,
"spark_conf": {
"spark.dynamicAllocation.enabled": "false"
},
"runtime_engine": "STANDARD"
}
}
]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;BR /&gt;Could you please assist in resolving the issue with job creation and retrieval of run output? Additionally, any guidance on creating and running individual task runs would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;kishor.chintanpalli@modak.com&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 11:38:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-creating-and-running-databricks-jobs-with-new/m-p/68724#M3001</guid>
      <dc:creator>Kishor</dc:creator>
      <dc:date>2024-05-10T11:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Creating and Running Databricks Jobs with new databricks cli v0.214.0</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-with-creating-and-running-databricks-jobs-with-new/m-p/71392#M3057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reference links for the solution.&lt;/P&gt;&lt;P&gt;I found the solution mentioned in this &lt;FONT color="#2272b4"&gt;&lt;U&gt;&lt;A href="https://github.com/databricks/databricks-sdk-go/discussions/384" target="_blank"&gt;https://github.com/databricks/databricks-sdk-go/discussions/384&amp;nbsp;&lt;/A&gt;&lt;/U&gt;&lt;/FONT&gt;&amp;nbsp;GitHub. By using the get-run API, I was able to retrieve the running status of my job along with a detailed description.&lt;/P&gt;&lt;P&gt;Following the guidance and using the `get-run option, I managed to get the job running status and description successfully.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 05:50:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-with-creating-and-running-databricks-jobs-with-new/m-p/71392#M3057</guid>
      <dc:creator>Kishor</dc:creator>
      <dc:date>2024-06-03T05:50:53Z</dc:date>
    </item>
  </channel>
</rss>

