echonesis commented on code in PR #9627:
URL: https://github.com/apache/ozone/pull/9627#discussion_r2688882706
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java:
##########
@@ -104,9 +108,23 @@ public Void call() throws Exception {
ReconServer.class, originalArgs, LOG, configuration);
ConfigurationProvider.setConfiguration(configuration);
+ String reconStarterUser =
UserGroupInformation.getCurrentUser().getShortUserName();
+ Collection<String> adminUsers =
+ OzoneAdmins.getOzoneAdminsFromConfig(configuration, reconStarterUser);
Review Comment:
Thanks for the suggestion!
Since we need to add Recon-specific admins from `OZONE_RECON_ADMINISTRATORS`
and `OZONE_RECON_ADMINISTRATORS_GROUPS`, using `addAll()` seemed like a
straightforward approach.
--
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]