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

VotersWatch issueWatchersLinkCloneUpdate 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

        1. YARN-7921.002.patch
          18 kB
          Weiwei Yang
        2. YARN-7921.001.patch
          18 kB
          Weiwei Yang
        3. Placement Constraint Expression Syntax Specification.pdf
          98 kB
          Weiwei Yang

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment