-
Notifications
You must be signed in to change notification settings - Fork 9.1k
MAPREDUCE-7294. Only application master should upload resource to Yarn Shared Cache #2223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💔 -1 overall
This message was automatically generated. |
@steveloughran Could you please help review the patch? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JohnZZGithub for the contribution. I found this PR's topic and commit message is not related. So I think we should create a new ticket under MAPREDUCE project and amend this commit.
I don't do yarn PRs |
@jiwq I double checked and confirmed the PR is the fix for the problem. The reason why the non-application master tries to upload is that the clear cache code didn't work. The code and bug are in YARN. MR uses yarn shared cache. I'm not sure we should move it MR project. Thanks. |
@steveloughran gotcha, thanks anyway. |
@JohnZZGithub The YARN Shared Cache is used to all YARN applications, but this PR is related to the MapReduce, so I think we should move it to MAPREDUCE project. |
@liuml07 Could you please review it when you get a chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug is when the policies are empty it won't clean up the existing policies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...educe-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java
Outdated
Show resolved
Hide resolved
...educe-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java
Outdated
Show resolved
Hide resolved
...educe-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java
Outdated
Show resolved
Hide resolved
…esource to yarn shared cache manager.
a15e59c
to
b356f23
Compare
@liuml07 Thanks a lot for the detailed review, updated the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on minor change.
Failing tests were not related and can not be reproduced locally.
I'll commit this in 3 business days in case there is a second review (welcome!)
@liuml07 Thanks a ton! |
…n Shared Cache (#2223) Contributed by Zhenzhao Wang <[email protected]> Signed-off-by: Mingliang Liu <[email protected]>
…n Shared Cache (#2223) Contributed by Zhenzhao Wang <[email protected]> Signed-off-by: Mingliang Liu <[email protected]>
…n Shared Cache (#2223) Contributed by Zhenzhao Wang <[email protected]> Signed-off-by: Mingliang Liu <[email protected]>
…n Shared Cache (apache#2223) Contributed by Zhenzhao Wang <[email protected]> Signed-off-by: Mingliang Liu <[email protected]>
…esource to yarn shared cache manager.
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute