[ https://issues.apache.org/jira/browse/YARN-7626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16370401#comment-16370401 ]
Miklos Szegedi commented on YARN-7626: -------------------------------------- Indeed there is not there any substantial difference other than saying {{regex:/dev/nvidia.*}}. I think this latter is a bit more robust in case we try to configure regexes for other purposes in the future. This is just an opinion I let you decide. {quote}what if hackers input user mount like regex+ as a prefix? {quote} Regex+ won't be considered valid. What if they put ^.*$? I do not think there is a difference at least not from this point of view. But you just raised an important point. The regex has to be properly validated. > Allow regular expression matching in container-executor.cfg for devices and > named docker volumes mount > ------------------------------------------------------------------------------------------------------ > > Key: YARN-7626 > URL: https://issues.apache.org/jira/browse/YARN-7626 > Project: Hadoop YARN > Issue Type: New Feature > Reporter: Zian Chen > Assignee: Zian Chen > Priority: Major > Attachments: YARN-7626.001.patch, YARN-7626.002.patch, > YARN-7626.003.patch, YARN-7626.004.patch, YARN-7626.005.patch, > YARN-7626.006.patch, YARN-7626.007.patch, YARN-7626.008.patch > > > Currently when we config some of the GPU devices related fields (like ) in > container-executor.cfg, these fields are generated based on different driver > versions or GPU device names. We want to enable regular expression matching > so that user don't need to manually set up these fields when config > container-executor.cfg, -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org