Compute executor cores and memory from the values spark-env.sh detects at startup (SPARK_WORKER_CORES, SPARK_WORKER_MEMORY) and pass them as --conf flags to spark-submit. This overrides the static defaults in spark-defaults.conf so the job scales automatically to whatever machine it runs on. Uses a bash array to avoid word-splitting issues. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6.8 KiB
Executable File
6.8 KiB
Executable File