[ https://issues.apache.org/jira/browse/YARN-7838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350372#comment-16350372 ]
Weiwei Yang commented on YARN-7838: ----------------------------------- Hello [~asuresh] Today I spent a few hours working on this one, to be able to support composite and nested constraints in DS, I think today's approach in PlacementSpec is not flexible. So I created a parser class {{PlacementConstraintParser}}. This is a prelim patch, please take a look and let me know your feedback. My thought is we can use such parser class to further support specifying expressions while submit an app, similar format like in DS. So app could be easier to use this feature without modifying client code. Once you agree with this approach, I can go on working on a formal patch. Thank you. > Support AND/OR constraints in Distributed Shell > ----------------------------------------------- > > Key: YARN-7838 > URL: https://issues.apache.org/jira/browse/YARN-7838 > Project: Hadoop YARN > Issue Type: Sub-task > Components: distributed-shell > Reporter: Weiwei Yang > Assignee: Weiwei Yang > Priority: Major > Attachments: YARN-7838.prelim.patch > > > Extending DS placement spec syntax to support AND/OR constraints, something > like > {code} > // simple > -placement_spec foo=4,AND(NOTIN,NODE,foo:NOTIN,NODE,bar) > // nested > -placement_spec foo=4,AND(NOTIN,NODE,foo:OR(IN,NODE,moo:IN,NODE,bar)) > {code} -- 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