[ 
https://issues.apache.org/jira/browse/YARN-8940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661645#comment-16661645
 ] 

Weiwei Yang commented on YARN-8940:
-----------------------------------

Cc [~leftnoteasy], [~sunilg] and [~eyang]. The description is the initial 
thought, pls take a look. Thanks

> Add volume as a top-level attribute in service spec 
> ----------------------------------------------------
>
>                 Key: YARN-8940
>                 URL: https://issues.apache.org/jira/browse/YARN-8940
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Weiwei Yang
>            Priority: Major
>
> Initial thought:
> {noformat}
> {
>   "name": "volume example",
>   "version": "1.0.0",
>   "description": "a volume simple example",
>   "components" :
>     [
>       {
>         "name": "",
>         "number_of_containers": 1,
>         "artifact": {
>           "id": "docker.io/centos:latest",
>           "type": "DOCKER"
>         },
>         "launch_command": "sleep,120",
>         "configuration": {
>           "env": {
>             "YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE":"true"
>           }
>         },
>         "resource": {
>           "cpus": 1,
>           "memory": "256",
>         },
>         "volumes": [
>           {
>             "volume" : {
>               "type": "s3_csi",
>               "id": "5504d4a8-b246-11e8-94c2-026b17aa1190",
>               "capability" : {
>                 "min": "5Gi",
>                 "max": "100Gi"
>               },
>               "source_path": "s3://my_bucket/my", # optional for object stores
>               "mount_path": "/mnt/data", # required, the mount point in 
> docker container
>               "access_mode": "SINGLE_READ", # how the volume can be accessed
>             }
>           }
>         ]
>       }
>     }
>   ]
> }
> {noformat}
> Open for discussion.



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

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

Reply via email to