[ 
https://issues.apache.org/jira/browse/YARN-9475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16818012#comment-16818012
 ] 

Peter Bacsko commented on YARN-9475:
------------------------------------

Note: I modified the script discovery logic slightly. If 
{{NEC_VE_GET_SCRIPT_PATH}} is defined, we make sure that the file exists and it 
isn't a directory. In the original version it was blindly accepted. Probably 
checking whether the script is executable is also a good idea (we do similar 
things in {{FpgaDiscoverer.runScript()}}: 
https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/fpga/FpgaDiscoverer.java#L153-L169)

> Create basic VE plugin
> ----------------------
>
>                 Key: YARN-9475
>                 URL: https://issues.apache.org/jira/browse/YARN-9475
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>            Priority: Major
>         Attachments: YARN-9475-001.patch, YARN-9475-002.patch, 
> YARN-9475-003.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to