You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2018/08/20 17:40:00 UTC

[jira] [Updated] (YARN-8687) YARN service example is out-dated

     [ https://issues.apache.org/jira/browse/YARN-8687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated YARN-8687:
----------------------------
    Issue Type: Sub-task  (was: Bug)
        Parent: YARN-7054

> YARN service example is out-dated
> ---------------------------------
>
>                 Key: YARN-8687
>                 URL: https://issues.apache.org/jira/browse/YARN-8687
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn-native-services
>            Reporter: Eric Yang
>            Priority: Major
>
> Example for YARN service is using file type "ENV".
> {code}
> {
>   "name": "httpd-service",
>   "version": "1.0",
>   "lifetime": "3600",
>   "components": [
>     {
>       "name": "httpd",
>       "number_of_containers": 2,
>       "artifact": {
>         "id": "centos/httpd-24-centos7:latest",
>         "type": "DOCKER"
>       },
>       "launch_command": "/usr/bin/run-httpd",
>       "resource": {
>         "cpus": 1,
>         "memory": "1024"
>       },
>       "configuration": {
>         "files": [
>           {
>             "type": "TEMPLATE",
>             "dest_file": "/var/www/html/index.html",
>             "properties": {
>               "content": "<html><header><title>Title</title></header><body>Hello from ${COMPONENT_INSTANCE_NAME}!</body></html>"
>             }
>           }
>         ]
>       }
>     },
>     {
>       "name": "httpd-proxy",
>       "number_of_containers": 1,
>       "artifact": {
>         "id": "centos/httpd-24-centos7:latest",
>         "type": "DOCKER"
>       },
>       "launch_command": "/usr/bin/run-httpd",
>       "resource": {
>         "cpus": 1,
>         "memory": "1024"
>       },
>       "configuration": {
>         "files": [
>           {
>             "type": "TEMPLATE",
>             "dest_file": "/etc/httpd/conf.d/httpd-proxy.conf",
>             "src_file": "httpd-proxy.conf"
>           }
>         ]
>       }
>     }
>   ],
>   "quicklinks": {
>     "Apache HTTP Server": "http://httpd-proxy-0.${SERVICE_NAME}.${USER}.${DOMAIN}:8080"
>   }
> }
> {code}
> The type has changed to "TEMPLATE" in the code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org