The spark-env.sh
is a regular bash script intended for Unix, so on a Windows installation it will never get picked up.
On Windows, you'll need to have a spark-env.cmd
file in the conf
directory and instead use the following syntax :
set SPARK_EXECUTOR_MEMORY=2G
On Unix, the file will be called spark-env.sh
and you will need to preprend each of your properties with export
(e.g. : export SPARK_EXECUTOR_MEMORY=2G
)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…