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