Skip to content

Commit

Permalink
fix: take spark dirver mem max from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl committed Dec 19, 2024
1 parent e7838b2 commit eb6e683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
version: "3.38.0"

- name: Run benchmark
env:
SPARK_DRIVER_MEMORY: "8g"
run: |
task run
Expand Down
3 changes: 2 additions & 1 deletion src/pathling_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
import os
import time
from pathling import PathlingContext, Expression as exp
from pyspark.sql import SparkSession, DataFrame
Expand Down Expand Up @@ -29,7 +30,7 @@ def _init_pc(self):
)
.config(
"spark.driver.memory",
"64g",
os.getenv("SPARK_DRIVER_MEMORY", "64g"),
)
.config(
"spark.hadoop.fs.s3a.endpoint",
Expand Down

0 comments on commit eb6e683

Please sign in to comment.