The cores property controls the number of concurrent tasks an executor can run. --executor-cores 5 means that each executor can run a maximum of five tasks at the same time.
If only spark.kubernetes.executor.cores is set, then the request in the pod definition is correct, but the executor application itself does not know how many concurrent tasks can be run.
The setting for
spark.executor.cores
should be re-instated as is not enough to rely onspark.kubernetes.executor.cores
.From here:
If only
spark.kubernetes.executor.cores
is set, then the request in the pod definition is correct, but the executor application itself does not know how many concurrent tasks can be run.