Skip to content

Default to serverless for job deployment in scala job template#82

Merged
andrewnester merged 8 commits into
databricks:mainfrom
garlandz-db:garland-zhang_data/fix_dabs
May 9, 2025
Merged

Default to serverless for job deployment in scala job template#82
andrewnester merged 8 commits into
databricks:mainfrom
garlandz-db:garland-zhang_data/fix_dabs

Conversation

@garlandz-db

@garlandz-db garlandz-db commented May 9, 2025

Copy link
Copy Markdown
Contributor

as per title we will use serverless client image 3 environment as the default setup for job deployment with this dabs template

test: executed manually in azure dogfood
https://adb-7064161269814046.2.staging.azuredatabricks.net/jobs/1125439312175236/runs/900250358433962?o=7064161269814046

  • note: the run fails b/c udfs are broken so this is expected but the jar is being picked up correctly and its running serverless!

spec:
client: "3"
jar_dependencies:
- {{.artifacts_dest_path}}/${bundle.name}/${bundle.target}/${workspace.current_user.short_name}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

cc @andrewnester

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the uber jar with the main program to execute. is this correctly formatted?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@garlandz-db since this jar is built as part of this bundle you can reference to the jar using a relative local path, so it can be something like

jar_dependencies:
- ../path/to/my/jar/*.jar

You as well can use a full remote path but then it should look like

jar_dependencies:
- ${workspace.artifact_path}/.internal/my_jar.jar

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah i see. explains why i have the library URL which is a couple lines above this using a relative path!

max_workers: 4
data_security_mode: USER_ISOLATION
queue:
enabled: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can omit this -- it is the default as of API version 2.2.

@garlandz-db garlandz-db requested a review from pietern May 9, 2025 12:00
garlandz-db and others added 2 commits May 9, 2025 17:19
…es/{{.project_name}}.job.yml.tmpl

Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
…es/{{.project_name}}.job.yml.tmpl

Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com>
@garlandz-db

Copy link
Copy Markdown
Contributor Author

jenkins merge

@andrewnester andrewnester merged commit 9ba284f into databricks:main May 9, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants