File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,12 @@ static HdfsFileStatus setOwner(
8383 fsd .checkOwner (pc , iip );
8484 if (!pc .isSuperUser ()) {
8585 if (username != null && !pc .getUser ().equals (username )) {
86- throw new AccessControlException ("Non-super user cannot change owner" );
86+ throw new AccessControlException ("User " + username
87+ + " is not a super user (non-super user cannot change owner)." );
8788 }
8889 if (group != null && !pc .isMemberOfGroup (group )) {
89- throw new AccessControlException ("User does not belong to " + group );
90+ throw new AccessControlException (
91+ "User " + username + " does not belong to " + group );
9092 }
9193 }
9294 unprotectedSetOwner (fsd , iip , username , group );
You can’t perform that action at this time.
0 commit comments