Is Spark Driver a synonym for Spark Master daemon

brickster_2018
Databricks Employee
Databricks Employee

If I understand correctly, Spark driver is a master process. Is it the same as the Spark Master. I get confused with the Spark master and Spark driver.

brickster_2018
Databricks Employee
Databricks Employee

This is a common misconception. Spark Master and Spark driver are two independent and isolated JVM's running on the same instance. Spark Master's responsibilities are to ensure the Spark worker's daemons are up and running and monitor the health. Also, manage the resource on the Spark cluster. Spark Master acts as the cluster manager in the Spark Standalone architecture. The Spark driver is the brain of the Spark engine. 

https://spark.apache.org/docs/latest/cluster-overview.html

https://spark.apache.org/docs/latest/spark-standalone.html

View solution in original post

I have a question regarding your answer:
- what is the role of Master and Driver if i spark-submit from different machine. Specifically does this roles or responsibilities change if i use cluster-mode or client-mode?