Github user tgravescs commented on the pull request:

    https://github.com/apache/spark/pull/5130#issuecomment-84999785
  
    > However, in my experience, if AMRMClient.unregisterApplicationMaster has 
not been called, Yarn  will restart the AM until exceeding the max attempts. So 
if the user does not create a SparkContext and the driver code exits normally, 
Yarn still will restart the AM. We have an ugly fix that forcing AM to register 
and unregister with Yarn if finding AM does not register when exiting.  
    
    @zsxwing  Can you clarify this?  Are you running something that never 
starts SparkContext?  I'm not sure what you mean by the user doesn't create 
spark context but the driver exits normally.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to