HDFS-15344. DataNode#checkSuperuserPrivilege should use UGI#getGroups after HADOOP-13442. (#2004)
This commit is contained in:
parent
108ecf992f
commit
3cacf1ce56
@ -1082,7 +1082,7 @@ public class DataNode extends ReconfigurableBase
|
||||
}
|
||||
|
||||
// Is the user a member of the super group?
|
||||
List<String> groups = Arrays.asList(callerUgi.getGroupNames());
|
||||
List<String> groups = callerUgi.getGroups();
|
||||
if (groups.contains(supergroup)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user