shanyu 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_r329827155
##########
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:
Sure, will add comments. Basically if a real user application require
private resources, when local user pooling is enabled, we will treat the
private resources as application resources. This means for each application we
will download (localize) the resources to application folder, and will delete
it after the application is finished.
----------------------------------------------------------------
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]