Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.

environments:
- environment_key: default
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!