cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

2 REPLIES 2

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

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?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group