Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
FusRoman committed Mar 13, 2024
1 parent 13d93b9 commit 849e1a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fink_mm/utils/fun_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,10 @@ def read_and_build_spark_submit(config, logger):
>>> logger = init_logging()
>>> spark_str = read_and_build_spark_submit(config, logger)
>>> spark_str
>>> home_path = os.environ["HOME"]
>>> driver_host = os.environ["HOSTNAME"]
>>> path_bash_profile = os.path.join(home_path, ".bash_profile")
>>> test_str = f"if test -f '{path_bash_profile}'; then source {path_bash_profile}; fi; `which spark-submit` --master local[8] --conf spark.driver.host=lmont-Precision-3561 --conf spark.mesos.principal= --conf spark.mesos.secret= --conf spark.mesos.role= --conf spark.executorEnv.HOME=/path/to/user/ --driver-memory 4G --executor-memory 8G --conf spark.cores.max=16 --conf spark.executor.cores=8"
>>> test_str = f"if test -f '{path_bash_profile}'; then source {path_bash_profile}; fi; `which spark-submit` --master local[8] --conf spark.driver.host={driver_host} --conf spark.mesos.principal= --conf spark.mesos.secret= --conf spark.mesos.role= --conf spark.executorEnv.HOME=/path/to/user/ --driver-memory 4G --executor-memory 8G --conf spark.cores.max=16 --conf spark.executor.cores=8"
>>> test_str == spark_str
True
"""
Expand Down

0 comments on commit 849e1a8

Please sign in to comment.