Skip to content
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

Read existing custom tags from databricks config template #555

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,14 @@ def submit_feathr_job(self, job_name: str, main_jar_path: str, main_class_name:
configuration['spark.executor.extraJavaOptions'] = '-Djava.security.properties='
configuration['spark.driver.extraJavaOptions'] = '-Djava.security.properties='
submission_params['new_cluster']['spark_conf'] = configuration
submission_params['new_cluster']['custom_tags'] = job_tags

if job_tags:
custom_tags = submission_params['new_cluster'].get('custom_tags', {})
for tag, value in job_tags.items():
custom_tags[tag] = value

submission_params['new_cluster']['custom_tags'] = custom_tags

# the feathr main jar file is anyway needed regardless it's pyspark or scala spark
if not main_jar_path:
logger.info(f"Main JAR file is not set, using default package '{FEATHR_MAVEN_ARTIFACT}' from Maven")
Expand Down