How to find the number of objects in an S3 bucket?
September 11, 2023What is the default number of executors in Spark?
September 25, 2023Number of cores
spark.executor.cores controls the number of cores available for the executors.
By default, it is 1 core per executor in YARN and all available cores in standalone cluster mode.
Amount of executor memory
spark.executor.memory controls the amount of memory allocated for each executor.
By default, each executor gets 1 GB.
Amount of driver memory
Cluster mode
spark.driver.memory controls the amount of memory allocated for the driver process in cluster mode.
By default, each executor gets 1 GB.
Client mode
In client mode, this config must not be set through the SparkConf directly in your application, because the driver JVM has already started at that point. Instead, please set this through the –driver-memory command line option or in your default properties file.