A cluster in Spark has the following component:
At a high level, every Apache Spark application consists of a driver program that launches various parallel operations on executor Java Virtual Machines (JVMs) running either in a cluster or locally on the same machine.
Spark is agnostic to the underlying cluster manager.
The system currently supports this cluster managers:
The cluster manager is given through the master property.