-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-17439. Support -nonSuperUser for NNThroughputBenchmark: useful f… #6677
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
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.
Looks good, pending CI
💔 -1 overall
This message was automatically generated. |
d7944e9
to
e6dd85d
Compare
💔 -1 overall
This message was automatically generated. |
The unit test failures are unrelated to the patch proposed. |
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.
@fateh288 Pls address checkstyle violations generated by your PR.
…or testing auth frameworks such as Ranger
9ee803d
to
ba26e23
Compare
💔 -1 overall
This message was automatically generated. |
Style error #1: -nonSuperUser is protected and is in-line with other similar member variables of the class. Unit test failures: not related to the patch |
💔 -1 overall
This message was automatically generated. |
@dineshchitlangia |
Requesting review on this patch. |
💔 -1 overall
This message was automatically generated. |
@fateh288 This change LGTM. As the last commit was a little old, could you merge in trunk or rebase on trunk and push the change so the CI runs again. This will avoid any problems that may occur due to some change on trunk over the last couple of months. Thanks! |
🎊 +1 overall
This message was automatically generated. |
@fateh288 there are still some checkstyle violations on lines that are changed in this PR:
If you could address these, we are good to commit this. |
@sodonnel Style error 1: -nonSuperUser is protected and is in-line with other similar member variables of the class. |
🎊 +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.
LGTM. Any style violations are in existing code lines or keeping with the style of the existing code (ie protected variable rather than private).
…or testing auth frameworks such as Ranger (apache#6677)
…or testing auth frameworks such as Ranger (apache#6677)
…or testing auth frameworks such as Ranger
Description of PR
The NNThroughputBenchmark can only be used with hdfs user or any user with super user privileges since entering/exiting safemode is a privileged operation. However, when using super user, ACL checks are skipped. Hence it renders the tool to be useless when testing namenode performance along with authorization frameworks such as Apache Ranger / any other authorization frameworks.
An optional argument such as -nonSuperUser can be used to skip the statements such as entering / exiting safemode. This optional argument makes the tool useful for incorporating authorization frameworks into the performance estimation flows.
How was this patch tested?
e.g. hadoop org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark -op open -threads 100 -files 100000 -filesPerDir 10000 -keepResults [-nonSuperUser]
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?