Uh oh!
There was an error while loading. Please reload this page.
[SPARK-4117] [YARN] Spark on Yarn handle AM being told command from RM - #10129
[SPARK-4117] [YARN] Spark on Yarn handle AM being told command from RM#10129devaraj-kavali wants to merge 3 commits into
Conversation
When RM throws ApplicationAttemptNotFoundException for allocate invocation, making the ApplicationMaster to finish immediately without any retries.
There was a problem hiding this comment.
; is not needed for Scala, also {...} is not necessary for this code block.
tgravescs
commented
Dec 3, 2015
Jenkins, test this please |
SparkQA
commented
Dec 3, 2015
Test build #47140 has finished for PR 10129 at commit
|
tgravescs
commented
Dec 3, 2015
the compilation failed on hadoop 2.3 because It looks like ApplicationAttemptNotFoundException was introduced in hadoop 2.4. We need to support back to hadoop 2.2. |
devaraj-kavali
commented
Dec 4, 2015
Thanks @tgravescs for the details. I missed it before creating PR. I am thinking these ways for supporting <2.4 Apache Hadoop versions and as well as for >=2.4 Apache Hadoop versions.
And this code can be changed to refer ApplicationAttemptNotFoundException class directly when we withdraw the support for <2.4 Hadoop versions. Please provide your suggestions. |
tgravescs
commented
Dec 4, 2015
I'm not overly concerned with hadoop < 2.4 version since they changed the api, so I say we just leave that unhandled until someone specifically requests it. So I think just change the ApplicationAttemptNotFoundException to use reflection to see if its there is good. |
6ff3840 to
636fd78Comparedevaraj-kavali
commented
Dec 8, 2015
@tgravescs I have made the changes, Please have a look into this. |
338c4b2 to
636fd78Comparehandling it as part of Throwable case.
There was a problem hiding this comment.
you can just do == here, this is scala
There was a problem hiding this comment.
also please add a comment to explain why we need to put this under this case, i.e. this exception was introduced in hadoop 2.x and this code would not compile otherwise
devaraj-kavali
commented
Dec 15, 2015
Thanks @andrewor14 for the review and comments. I have updated them, can you have look into it. |
tgravescs
commented
Dec 15, 2015
@andrewor14 sorry I hadn't gotten back to this. yes if its fatal we should exit immediately or if we reached the max retries. That is still handled by the else if. Are you suggesting just to switch the order and have the first if by the !NonFatal check as it was and put this in the else? |
andrewor14
commented
Dec 15, 2015
Oh I see, though in general we shouldn't even bother catching fatal errors; right now the fail message is a little strange. We can fix that separately. This patch looks OK to me. Thanks for addressing the comments quickly @devaraj-kavali |
andrewor14
commented
Dec 16, 2015
Merging into master, thanks @devaraj-kavali. |
Spark on Yarn handle AM being told command from RM
When RM throws ApplicationAttemptNotFoundException for allocate
invocation, making the ApplicationMaster to finish immediately without any
retries.