Browse Source

YARN-8136. Add version attribute to site doc examples and quickstart. (Eric Yang via wangda)

Change-Id: I4541b239f490ca0a6edf9698e0d3deaf83669151
Wangda Tan 7 năm trước cách đây
mục cha
commit
8244abb7ae

+ 4 - 1
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
     }
   ]
 }
+```

+ 1 - 0
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" : 
     [
       {