Skip to content

Commit

Permalink
Add setmaster to PCA (#442)
Browse files Browse the repository at this point in the history
* Add setmaster for standalone runs on CI/CD

* signoff

Signed-off-by: Rishi Chandra <[email protected]>

---------

Signed-off-by: Rishi Chandra <[email protected]>
  • Loading branch information
rishic3 authored Oct 8, 2024
1 parent 8bc8f9e commit 47ae101
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@
" '''\n",
" If no active Spark session is found, initialize and configure a new one. \n",
" '''\n",
" import socket\n",
" hostname = socket.gethostname()\n",
"\n",
" conf = SparkConf()\n",
" conf.setMaster(f\"spark://{hostname}:7077\") # Assuming master is on host and default port. \n",
" conf.set(\"spark.task.maxFailures\", \"1\")\n",
" conf.set(\"spark.driver.memory\", \"10g\")\n",
" conf.set(\"spark.executor.memory\", \"8g\")\n",
Expand Down

0 comments on commit 47ae101

Please sign in to comment.