From 8244abb7aeb768b73682b8c9a26516a9cf06bca5 Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Thu, 9 Aug 2018 11:03:46 -0700 Subject: [PATCH] YARN-8136. Add version attribute to site doc examples and quickstart. (Eric Yang via wangda) Change-Id: I4541b239f490ca0a6edf9698e0d3deaf83669151 --- .../src/site/markdown/yarn-service/Examples.md | 5 ++++- .../src/site/markdown/yarn-service/QuickStart.md | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/Examples.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/Examples.md index 03fec79e8ab..73e00b300b7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/Examples.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/Examples.md @@ -30,6 +30,7 @@ Note this example requires registry DNS. ``` { "name": "httpd-service", + "version": "1.0", "lifetime": "3600", "components": [ { @@ -169,9 +170,10 @@ Then visit port 8080 for each IP to view the pages. Docker images may have built with ENTRYPOINT to enable start up of docker image without any parameters. When passing parameters to ENTRYPOINT enabled image, `launch_command` is delimited by comma (,). +``` { "name": "sleeper-service", - "version": "1", + "version": "1.0", "components" : [ { @@ -198,3 +200,4 @@ When passing parameters to ENTRYPOINT enabled image, `launch_command` is delimit } ] } +``` diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/QuickStart.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/QuickStart.md index e1443206779..bba9bb83634 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/QuickStart.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/QuickStart.md @@ -40,6 +40,7 @@ Below is a simple service definition that launches sleep containers on YARN by w ``` { "name": "sleeper-service", + "version": "1.0", "components" : [ {