GitHub user jerryshao opened a pull request:

    https://github.com/apache/spark/pull/18213

    [SPARK-20996][YARN] Better handling AM reattempt based on exit code in yarn 
mode

    ## What changes were proposed in this pull request?
    
    Yarn provides max attempt configuration for applications running on it, 
application has the chance to retry itself when failed. In the current Spark 
code, no matter which failure AM occurred and if the failure doesn't reach to 
the max attempt, RM will restart AM, this is not reasonable for some cases if 
this issue is coming from AM itself, like user code failure, OOM, Spark issue, 
executor failures, in large chance the reattempt of AM will meet this issue 
again. Only when AM is failed due to external issue like crash, process kill, 
NM failure, then AM should retry again.
    
    So here propose to improve this reattempt mechanism to only retry when it 
meets external issues.
    
    ## How was this patch tested?
    
    Manual verification.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jerryshao/apache-spark SPARK-20996

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18213.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18213
    
----
commit 1fa14152957e29d23598cb9e456ea3875138ef5e
Author: jerryshao <ss...@hortonworks.com>
Date:   2017-06-06T08:37:33Z

    Change the behavior of AM unregister
    
    Change-Id: Ia2c03e6001f91cbeaaa2a5f5d32ba4eb49ab9e6c

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to