Repository: hadoop Updated Branches: refs/heads/trunk b6ad84ebb -> 78a0d173e
YARN-8787. Fix broken list items in PlacementConstraints documentation. Contributed by Masahiro Tanaka. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/78a0d173 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/78a0d173 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/78a0d173 Branch: refs/heads/trunk Commit: 78a0d173e4f0c2f2679a04edd62a60fb76dde4f0 Parents: b6ad84e Author: Weiwei Yang <w...@apache.org> Authored: Tue Sep 18 17:19:33 2018 +0800 Committer: Weiwei Yang <w...@apache.org> Committed: Tue Sep 18 17:19:39 2018 +0800 ---------------------------------------------------------------------- .../hadoop-yarn-site/src/site/markdown/PlacementConstraints.md.vm | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/78a0d173/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/PlacementConstraints.md.vm ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/PlacementConstraints.md.vm b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/PlacementConstraints.md.vm index 4ac1683..a583493 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/PlacementConstraints.md.vm +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/PlacementConstraints.md.vm @@ -87,6 +87,7 @@ An example of PlacementSpec is the following: zk=3,NOTIN,NODE,zk:hbase=5,IN,RACK,zk:spark=7,CARDINALITY,NODE,hbase,1,3 ``` The above encodes three constraints: + * place 3 containers with tag "zk" (standing for ZooKeeper) with node anti-affinity to each other, i.e., do not place more than one container per node (notice that in this first constraint, the SourceTag and the TargetTag of the constraint coincide); * place 5 containers with tag "hbase" with affinity to a rack on which containers with tag "zk" are running (i.e., an "hbase" container should not be placed at a rack where an "zk" container is running, given that "zk" is the TargetTag of the second constraint); * place 7 containers with tag "spark" in nodes that have at least one, but no more than three, containers with tag "hbase". @@ -132,6 +133,7 @@ The example constraints used above could be extended with namespaces as follows: zk=3,NOTIN,NODE,not-self/zk:hbase=5,IN,RACK,all/zk:spark=7,CARDINALITY,NODE,app-id/appID_0023/hbase,1,3 ``` The semantics of these constraints are the following: + * place 3 containers with tag "zk" (standing for ZooKeeper) to nodes that do not have "zk" containers from other applications running; * place 5 containers with tag "hbase" with affinity to a rack on which containers with tag "zk" (from any application, be it the same or a different one) are running; * place 7 containers with tag "spark" in nodes that have at least one, but no more than three, containers with tag "hbase" belonging to application with ID `appID_0023`. --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org