-
Notifications
You must be signed in to change notification settings - Fork 9.1k
YARN-11593. [Federation] Improve command line help information. #6199
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. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
protected final static String DSEXAMPLE_2 = "yarn routeradmin -deregisterSubCluster --subClusterId SC-1"; | ||
|
||
protected final static RouterExampleUsageInfos DSEXAMPLEUSAGEINFOS_1 = new RouterExampleUsageInfos( | ||
Arrays.asList(DSEXAMPLE_1, DSEXAMPLE_2), |
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.
I don't think this is the right spacing.
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.
Thank you very much for your help in reviewing the code! I will improve this part of the code.
Arrays.asList("At this point we can use the following command:")); | ||
protected final static RouterUsageInfos DEREGISTER_SUBCLUSTER = | ||
new RouterUsageInfos(Arrays.asList(SUBCLUSTER_ID), | ||
Arrays.asList("deregister subCluster, " + |
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.
This doesn't look much more readable to be honest.
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 your feedback! I will improve this part of the code to make it more readable.
} | ||
builder.append("\n"); | ||
// Print Command example | ||
if (CollectionUtils.isNotEmpty(values.examples)) { |
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.
Can we add unit tests for these?
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.
I will add unit tests.
@goiri Can you help review this PR again? Thank you very much! I improved the code to make it more readable. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@goiri Can you help review this PR? Thank you very much! |
@goiri Thank you very much for your help in reviewing the code! I will continue to follow up on YARN-11594. |
…he#6199) Contributed by Shilun Fan. Reviewed-by: Inigo Goiri <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
Description of PR
JIRA: YARN-11593. [Federation] Improve command line help information.
We have introduced several command-line features for Yarn Federation, and this PR aims to improve the presentation of help information and supplement the 'YARN Federation.md' file to assist users in better utilizing these command-line features.
Screenshot of help information:
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?