Skip to content

Commit 78ca14c

Browse files
authored
Merge pull request #54 from tomarv2/develop
fixing single node cluster deployment
2 parents 9079933 + e6b0d91 commit 78ca14c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cluster.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ resource "databricks_cluster" "single_node_cluster" {
7373
}
7474

7575
autotermination_minutes = var.cluster_autotermination_minutes
76-
custom_tags = var.custom_tags != null ? var.custom_tags : null
7776

77+
custom_tags = {
78+
"ResourceClass" = "SingleNode"
79+
}
7880
spark_conf = {
7981
# Single-node
8082
"spark.databricks.cluster.profile" : "singleNode"

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ locals {
77

88
# CLUSTER
99

10-
type_of_cluster = var.fixed_value == 0 ? join("", databricks_cluster.cluster.*.id) : join("", databricks_cluster.single_node_cluster.*.id)
10+
type_of_cluster = var.fixed_value == 0 ? join("", databricks_cluster.single_node_cluster.*.id) : join("", databricks_cluster.cluster.*.id)
1111

1212
cluster_info = var.cluster_id == null ? local.type_of_cluster : var.cluster_id
1313

0 commit comments

Comments
 (0)