-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single Node Jobs creation leads to Missing required field: settings.cluster_spec.new_cluster.size Databricks CLI 0.200.2 #663
Comments
Please report it to https://github.com/databricks/cli |
Hey @alexott thank you for the hint. It was hard to determine what was the right place to post. Issue is already known, Failed to create a job with single-node cluster |
I have a workaround until the fix arrives. Cross posting it in this old CLI repo since the issue is still open. I experienced the issue with Not working: $ databricks jobs reset --json @example.json
Error: Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size Working: $ databricks api post /api/2.1/jobs/reset --json @example.json
{} This was done in Databricks CLI v0.205.0. |
Thanks @dvinesett for sharing the workaround. Works like a charm, even though it complicates my CD pipeline. |
Hey @kucm-pg, this issue was posted to the Legacy Databricks CLI and likely won't be fixed here. However, it was fixed in the newer, separate version of the Databricks CLI. You'll need to migrate to that version to receive the update. That is, installing the CLI from the instructions here rather than the old way using pip. |
Hey @dvinesett thanks for sharing! This issue can be closed, I guess. |
Setup
Description
Azure Databricks CLI logged several events related to a process involving the creation of a job on Databricks. The Azure Databricks CLI on Linux version used was 0.200.2.
The DEFAULT profile from "/root/.databrickscfg" was used for authentication and correct configured because the other operations work well. In the .databrickscfg API Verison 2.1 and 2.0 were already tested and lead to the same result.
However, the job creation failed due to a missing required field in the cluster specification: "settings.cluster_spec.new_cluster.size." As a result, the CLI returned an error with the code "INVALID_PARAMETER_VALUE" and the message "Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size."
Running this command lead to the error above:
databricks jobs create --json @b.json
Find the content of the b.json file below.
The log of the command executed can be found here
And leads also to the error:
time=2023-08-01T07:52:58.409+02:00 level=ERROR source=root.go:96 msg="failed execution" exit_code=1 error="Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size"
The text was updated successfully, but these errors were encountered: