2024-06-26 10:25:32 +00:00
|
|
|
bundle:
|
|
|
|
name: complex-variables
|
|
|
|
|
|
|
|
resources:
|
|
|
|
jobs:
|
|
|
|
my_job:
|
|
|
|
job_clusters:
|
|
|
|
- job_cluster_key: key
|
|
|
|
new_cluster: ${var.cluster}
|
|
|
|
tasks:
|
|
|
|
- task_key: test
|
|
|
|
job_cluster_key: key
|
|
|
|
libraries: ${variables.libraries.value}
|
|
|
|
task_key: "task with spark version ${var.cluster.spark_version} and jar ${var.libraries[0].jar}"
|
|
|
|
|
|
|
|
variables:
|
|
|
|
node_type:
|
|
|
|
default: "Standard_DS3_v2"
|
|
|
|
cluster:
|
|
|
|
type: complex
|
|
|
|
description: "A cluster definition"
|
|
|
|
default:
|
|
|
|
spark_version: "13.2.x-scala2.11"
|
|
|
|
node_type_id: ${var.node_type}
|
|
|
|
num_workers: 2
|
2024-07-04 11:57:29 +00:00
|
|
|
policy_id: "some-policy-id"
|
2024-06-26 10:25:32 +00:00
|
|
|
spark_conf:
|
|
|
|
spark.speculation: true
|
|
|
|
spark.databricks.delta.retentionDurationCheck.enabled: false
|
2024-07-04 11:57:29 +00:00
|
|
|
spark.random: true
|
2024-06-26 10:25:32 +00:00
|
|
|
libraries:
|
|
|
|
type: complex
|
|
|
|
description: "A libraries definition"
|
|
|
|
default:
|
|
|
|
- jar: "/path/to/jar"
|
|
|
|
- egg: "/path/to/egg"
|
|
|
|
- whl: "/path/to/whl"
|
2024-09-18 10:23:07 +00:00
|
|
|
complexvar:
|
|
|
|
type: complex
|
|
|
|
description: "A complex variable"
|
|
|
|
default:
|
|
|
|
key1: "value1"
|
|
|
|
key2: "value2"
|
|
|
|
key3: "value3"
|
2024-06-26 10:25:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
targets:
|
|
|
|
default:
|
|
|
|
dev:
|
|
|
|
variables:
|
|
|
|
node_type: "Standard_DS3_v3"
|
|
|
|
cluster:
|
|
|
|
spark_version: "14.2.x-scala2.11"
|
|
|
|
node_type_id: ${var.node_type}
|
|
|
|
num_workers: 4
|
|
|
|
spark_conf:
|
|
|
|
spark.speculation: false
|
|
|
|
spark.databricks.delta.retentionDurationCheck.enabled: false
|
2024-09-18 10:23:07 +00:00
|
|
|
complexvar:
|
|
|
|
type: complex
|
|
|
|
default:
|
|
|
|
key1: "1"
|
|
|
|
key2: "2"
|
|
|
|
key3: "3"
|