cli
cli copied to clipboard
DAB deployment fails with `Error: cannot create job: NumWorkers could be 0 only for SingleNode clusters`
Describe the issue
When running databricks bundle deploy
I get the following error
Potenitally sensitive info replaced with <internal ...>
Updating deployment state...
Error: terraform apply: exit status 1
Error: cannot create job: NumWorkers could be 0 only for SingleNode clusters. See https://docs.databricks.com/clusters/single-node.html for more details
with <internal key>,
on bundle.tf.json line 87, in resource.databricks_job.<internal key>:
87: },
...
The cluster definition at that point is:
{
"job_cluster_key": "<internal key>",
"new_cluster": {
"aws_attributes": {
"first_on_demand": 1,
"instance_profile_arn": "<internal arn>"
},
"custom_tags": {
"env": "dev",
"owner": "datascience",
"role": "databricks",
"vertical": "datascience"
},
"data_security_mode": "SINGLE_USER",
"node_type_id": "m6i.2xlarge",
"num_workers": 0,
"policy_id": "<internal policy id>",
"spark_conf": {
"spark.databricks.cluster.profile": "singleNode",
"spark.databricks.delta.schema.autoMerge.enabled": "true",
"spark.databricks.sql.initial.catalog.name": "<internal catalog name>",
"spark.master": "local[*, 4]"
},
"spark_version": "13.2.x-cpu-ml-scala2.12"
}
}
Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
- Install databricks CLI @
v0.222.0
- Run
databricks bundle deploy
- See error
- Downgrade to
v0.221.1
- Run databricks bundle deploy`
- See no error
Expected Behavior
Bundle should have deployed successfully
Actual Behavior
Bundle failed to deploy at the Updating deployment state...
step
OS and CLI version
Please include the version of the CLI (eg: v0.1.2) and the operating system (eg: windows). You can run databricks --version to get the version of your Databricks CLI Databricks: v0.222.0 OS:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Is this a regression?
Yes, v0.221.1
works as well as v0.217.0
Maybe related to https://github.com/databricks/cli/issues/592