Skip to content


BarrierJobSlotsNumberCheckFailed is a BarrierJobAllocationFailed with the following exception message:

[SPARK-24819]: Barrier execution mode does not allow run a barrier stage that requires more slots than the total number of slots in the cluster currently.
Please init a new cluster with more resources(e.g. CPU, GPU) or repartition the input RDD(s) to reduce the number of slots required to run this barrier stage.

BarrierJobSlotsNumberCheckFailed can be thrown when DAGScheduler is requested to handle a JobSubmitted event.

Creating Instance

BarrierJobSlotsNumberCheckFailed takes the following to be created:

BarrierJobSlotsNumberCheckFailed is created when: