From 6c11a119184b888c5b1a11e365bffc97b4598845 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Thu, 27 Oct 2016 14:10:07 -0500 Subject: [PATCH] Revert "HDFS-10455. Logging the username when deny the setOwner operation. Contributed by Tianyin Xiu" This reverts commit f4300ea12af356c5d0fcc379b892ac918bafbc18. --- .../org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java index 04bfbb74e34..6c3f6abc67e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java @@ -83,12 +83,10 @@ public class FSDirAttrOp { fsd.checkOwner(pc, iip); if (!pc.isSuperUser()) { if (username != null && !pc.getUser().equals(username)) { - throw new AccessControlException("User " + pc.getUser() - + " is not a super user (non-super user cannot change owner)."); + throw new AccessControlException("Non-super user cannot change owner"); } if (group != null && !pc.isMemberOfGroup(group)) { - throw new AccessControlException( - "User " + pc.getUser() + " does not belong to " + group); + throw new AccessControlException("User does not belong to " + group); } } unprotectedSetOwner(fsd, iip, username, group);