Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contrib/templates/scala-job/library/template_variables.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- end }}

{{ define `dbr_version` -}}
16.2
16.3
{{- end }}

{{ define `scala_major_minor_version` -}}
Expand All @@ -28,4 +28,4 @@

{{ define `jar_path` -}}
./target/scala-{{template `scala_major_minor_version` .}}/{{.project_name}}-assembly-{{template `version` .}}.jar
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ resources:
name: {{.project_name}}
tasks:
- task_key: main_task
job_cluster_key: {{.project_name}}_job_cluster
spark_jar_task:
main_class_name: {{template `main_class_name` .}}
libraries:
- jar: ../{{template `jar_path` .}}
job_clusters:
- job_cluster_key: {{.project_name}}_job_cluster
new_cluster:
spark_version: {{template `dbr_version` .}}.x-scala{{template `scala_major_minor_version` .}}
node_type_id: i3.xlarge # Default instance type (can be changed)
autoscale:
min_workers: 1
max_workers: 4
data_security_mode: USER_ISOLATION
environment_key: default
environments:
- environment_key: default
spec:
client: "3"
jar_dependencies:
- ${workspace.artifact_path}/.internal/{{.project_name}}-assembly-{{template `version` .}}.jar