Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7812 Improvements to Rich Placement Constraints in YARN
  3. YARN-7921

Transform a PlacementConstraint to a string expression

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • None
    • None

    Description

      Purpose:

      Let placement constraint viewable on UI or log, e.g print app placement constraint in RM app page. Help user to use constraints and analysis placement issues easier.

      Propose:

      Like what was added for DS, toString is a reversed process of PlacementConstraintParser that transforms a PlacementConstraint to a string, using same syntax. E.g

      
      AbstractConstraint constraintExpr = targetIn(NODE, allocationTag("hbase-m"));
      
      constraint.toString();
      
      // This prints: IN,NODE,hbase-m
      
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cheersyang Weiwei Yang Assign to me
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment