Your 2nd assumption is correct . There is yarn client which polls AM while running in yarn client mode
Sent from Samsung Mobile. <div>-------- Original message --------</div><div>From: ayan guha <guha.a...@gmail.com> </div><div>Date:10/02/2016 10:55 (GMT+05:30) </div><div>To: praveen S <mylogi...@gmail.com> </div><div>Cc: user <user@spark.apache.org> </div><div>Subject: Re: AM creation in yarn client mode </div><div> </div>It depends on yarn-cluster and yarn-client mode. On Wed, Feb 10, 2016 at 3:42 PM, praveen S <mylogi...@gmail.com> wrote: Hi, I have 2 questions when running the spark jobs on yarn in client mode : 1) Where is the AM(application master) created : A) is it created on the client where the job was submitted? i.e driver and AM on the same client? Or B) yarn decides where the the AM should be created? 2) Driver and AM run in different processes : is my assumption correct? Regards, Praveen -- Best Regards, Ayan Guha