title: Spark driver node and worker node for a Spark application in Standalone cluster
body: <p>I want to understand when a Spark application is submitted which node will act as a driver node and which node will be as a worker node ?</p>
  
  <p>For example if I have Standalone cluster of 3 nodes.</p>
  
  <p>When spark first application(app1) is submitted, spark framework will randomly choose one of the node as driver node and other nodes as worker nodes. This is only for app1. During it's execution, if another spark application(app2) is submitted, spark can choose randomly one node as driver node and other nodes as worker nodes. This is only for app2. So while both spark applications are executing there can be a situation that two different nodes can be master nodes. Please correct me If misunderstand.</p>