ashvina commented on a change in pull request #1446: YARN-9834. Allow using a
pool of local users to run Yarn Secure Conta…
URL: https://github.com/apache/hadoop/pull/1446#discussion_r325337854
##########
File path:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/ResourceLocalizationService.java
##########
@@ -212,6 +213,15 @@ public ResourceLocalizationService(Dispatcher dispatcher,
this.delService = delService;
this.dirsHandler = dirsHandler;
+ this.disablePrivateVis = UserGroupInformation.isSecurityEnabled() &&
+ context.getConf().getBoolean(
+ YarnConfiguration.NM_SECURE_MODE_USE_POOL_USER,
+ YarnConfiguration.DEFAULT_NM_SECURE_MODE_USE_POOL_USER);
+ if (this.disablePrivateVis) {
+ LOG.info("When " + YarnConfiguration.NM_SECURE_MODE_USE_POOL_USER +
Review comment:
All resources can either be `public` or `application`. It seems this
constraint is added since a `local-user` may get assigned to different
`real-users`. Can you comment on the cases where a real user application may
require `private` resources and `local-user-pooling` is enabled?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]