Skip to content

Commit

Permalink
don't override spark.app.name if provided by the user
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Sharma committed Jul 22, 2024
1 parent 18a6a50 commit b659432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paasta_tools/tron_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def build_spark_config(self) -> Dict[str, str]:
if "spark.app.name" in spark_conf:
spark_conf["spark.app.name"] = limit_size_with_hash(
f"tron_spark_{self.get_service()}_{self.get_instance()}_{self.get_action_name()}"
if "spark.app.name" not in stringified_spark_args else
stringified_spark_args["spark.app.name"]
)
# TODO: Remove this once dynamic pod template is generated inside the driver using spark-submit wrapper
if "spark.kubernetes.executor.podTemplateFile" in spark_conf:
Expand Down

0 comments on commit b659432

Please sign in to comment.