xiaoyuyao commented on a change in pull request #2217:
URL: https://github.com/apache/ozone/pull/2217#discussion_r637325475
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
##########
@@ -3617,9 +3618,11 @@ public OzoneDelegationTokenSecretManager
getDelegationTokenMgr() {
return ozAdmins;
}
- public boolean isAdmin(String username) {
+ public boolean isAdmin(String username) throws IOException {
if (isAclEnabled) {
- return accessAuthorizer != null && accessAuthorizer.isAdmin(username);
Review comment:
Here we honor admin defined by the pluggable authorizers such as Ranger,
if we remove this. The admin defined outside the ozone.administrators
configuration key in Ranger will not be honored.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]