Github user tgravescs commented on the pull request:

    https://github.com/apache/spark/pull/6026#issuecomment-100929401
  
    How about we just wrap submitApplication is a try catch block and check to 
see if we need to cleanup the staging directory if it fails.  that way it 
should cover more failure scenarios.  
    
    You have to do certain things in certain order in order to submit. We 
create the launch context (which includes preparing the resources, create the 
submission context and submit to yarn.   Personally I like having the resources 
setup before setting it in the context.  


---
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