-
Notifications
You must be signed in to change notification settings - Fork 125
Default to serverless for job deployment in scala job template #82
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
Changes from 1 commit
fdc4b23
898fede
0e0b728
3b701d4
6f11bd2
4f6df32
ba8a130
196a71b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,17 +6,15 @@ 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 | ||
| queue: | ||
| enabled: true | ||
| environments: | ||
| - environment_key: default | ||
| spec: | ||
| client: "3" | ||
| jar_dependencies: | ||
| - {{.artifacts_dest_path}}/${bundle.name}/${bundle.target}/${workspace.current_user.short_name} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 You as well can use a full remote path but then it should look like
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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! |
||
There was a problem hiding this comment.
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.