Hi @sonnh
If you do not specify spark.executor.memory when using spark-submit or spark-shell, or pyspark, the default value for spark.executor.memory will be set to 1g.
Launch the Spark Shell by passing the Executor Memory:
[root@local ~]# pyspark --conf spark.executor.memory=1g
>>> spark.conf.get("spark.executor.memory")
u'1g'
Launch the Spark Shell by without passing the Executor Memory:
[root@local ~]# pyspark
>>> spark.conf.get("spark.executor.memory")
py4j.protocol.Py4JJavaError: An error occurred while calling o66.get. :
java.util.NoSuchElementException: spark.executor.memory ...
Note: Spark is not able to detect/load the spark.executor.memory parameter value from launched spark shell.
Reference:
https://spark.apache.org/docs/latest/configuration.html