diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index c772d8fe38..20ea7c79cf 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -1082,7 +1082,7 @@ public class DataNode extends ReconfigurableBase } // Is the user a member of the super group? - List groups = Arrays.asList(callerUgi.getGroupNames()); + List groups = callerUgi.getGroups(); if (groups.contains(supergroup)) { return; }