From yarn-issues-return-156198-apmail-hadoop-yarn-issues-archive=hadoop.apache.org@hadoop.apache.org Wed Oct 24 02:56:07 2018 Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D37918680 for ; Wed, 24 Oct 2018 02:56:07 +0000 (UTC) Received: (qmail 55606 invoked by uid 500); 24 Oct 2018 02:56:07 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 55558 invoked by uid 500); 24 Oct 2018 02:56:06 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 55547 invoked by uid 99); 24 Oct 2018 02:56:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2018 02:56:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2D6C71A2B58 for ; Wed, 24 Oct 2018 02:56:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MaxqnPJDb2uL for ; Wed, 24 Oct 2018 02:56:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7B9FF5F3D0 for ; Wed, 24 Oct 2018 02:56:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D1CEFE2072 for ; Wed, 24 Oct 2018 02:56:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4AFF6252BE for ; Wed, 24 Oct 2018 02:56:00 +0000 (UTC) Date: Wed, 24 Oct 2018 02:56:00 +0000 (UTC) From: "Weiwei Yang (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-8940) Add volume as a top-level attribute in service spec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org