Skip to content
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

[ISSUE] Configuration drift in databricks_cluster when is_single_node is set to true #4360

Open
alexott opened this issue Dec 28, 2024 · 0 comments

Comments

@alexott
Copy link
Contributor

alexott commented Dec 28, 2024

The is_single_node represents a simpler way of configuring single node clusters, but it automatically adds necessary spark_conf and custom_tags values, leading to the configuration drift, like this:

  # databricks_cluster.single_node_new_1228_101700_uxdk2a63 will be updated in-place
  ~ resource "databricks_cluster" "single_node_new_1228_101700_uxdk2a63" {
      ~ custom_tags                  = {
          - "ResourceClass" = "SingleNode" -> null
        }
        id                           = "1228-102112-aco3jrk3"
      ~ spark_conf                   = {
          - "spark.databricks.cluster.profile" = "singleNode" -> null
          - "spark.master"                     = "local[*, 4]" -> null
        }
        # (19 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

for the following configuration:

resource "databricks_cluster" "single_node_new_1228_101700_uxdk2a63" {
  spark_version      = "15.4.x-scala2.12"
  single_user_name   = "[email protected]"
  runtime_engine     = "STANDARD"
  node_type_id       = "Standard_D4ds_v5"
  kind               = "CLASSIC_PREVIEW"
  is_single_node     = true
  data_security_mode = "SINGLE_USER"
  cluster_name       = "Single Node new (TF)"
  autotermination_minutes = 10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant