ChenSammi commented on code in PR #2466:
URL: https://github.com/apache/ozone/pull/2466#discussion_r1130339521
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/volume/ListVolumeHandler.java:
##########
@@ -72,7 +72,7 @@ protected void execute(OzoneClient client, OzoneAddress
address)
throws IOException {
if (userName == null) {
- userName = UserGroupInformation.getCurrentUser().getUserName();
+ userName = UserGroupInformation.getCurrentUser().getShortUserName();
Review Comment:
HDDS-7920 keep the full user name in CLI client, and change the logic in
OzoneManager to get short name from client passed full name.
This patch changes all full username in CLI client to short name. I will
revert OzoneManager side change in HDDS-7920. Besides, HadoopKerberosName
accepts short name. So the code in OzoneManager added by HDDS-7920 doesn't
break, but not necessary now.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]