-
Notifications
You must be signed in to change notification settings - Fork 9.1k
YARN-11107:When NodeLabel is enabled for a YARN cluster, AM blacklist… #4150
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
… program does not work properly.
💔 -1 overall
This message was automatically generated. |
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 for the patch @zhangxiping1! I had one comment, and can you please add a test (or extend an existing one i.e: in TestApplicationMasterService) for it?
} catch (Exception e){ | ||
} |
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.
One thing about this: is the "queue missing" is a valid scenario here? If it is, and it's completely normal to not have any queue returned here, can you please write a comment (or a debug log line)? If it's not a valid scenario an exception could be thrown.
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.
Reference the SchedulerUtils. NormalizeAndValidateRequest fuction
try { queueInfo = rmContext.getScheduler().getQueueInfo(queueName, false, false); } catch (IOException e) { //Queue may not exist since it could be auto-created in case of // dynamic queues }
Should I add comments like this too?
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
@brumi1024 hi,Complete the test case !
🎊 +1 overall
This message was automatically generated. |
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 @zhangxiping1, after the updates the change looks good to me. I'll merge it today.
Merged to trunk. |
import org.apache.hadoop.yarn.util.resource.DominantResourceCalculator; | ||
import org.apache.hadoop.yarn.util.resource.Resources; | ||
|
||
import com.google.common.collect.ImmutableMap; |
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.
Hi, @zhangxiping1 and @brumi1024.
We need to use thirdparty library for com.google.common.*
.
import org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableMap;
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.
@tasanuma Thank you for your check. This PR has been closed. How should we deal with this situation?
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.
@zhangxiping1 Could you create another PR to fix it with the title of "YARN-11107. Addendum. When NodeLabel is enabled for a YARN cluster, AM blacklist program does not work properly."?
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.
OK , created [(https://github.com//pull/4175)]
… program does not work properly.
Description of PR
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?