From yarn-issues-return-136243-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Jan 26 23:27:08 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 6DAF1180657 for ; Fri, 26 Jan 2018 23:27:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5D83D160C50; Fri, 26 Jan 2018 22:27:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A663A160C2E for ; Fri, 26 Jan 2018 23:27:07 +0100 (CET) Received: (qmail 52029 invoked by uid 500); 26 Jan 2018 22:27: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 52018 invoked by uid 99); 26 Jan 2018 22:27:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2018 22:27:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 49BFAC0024 for ; Fri, 26 Jan 2018 22:27:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id d3b31A_v7WpT for ; Fri, 26 Jan 2018 22:27:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B4DE65F5B3 for ; Fri, 26 Jan 2018 22:27:03 +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 25D01E00A7 for ; Fri, 26 Jan 2018 22:27:02 +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 B14D3240EE for ; Fri, 26 Jan 2018 22:27:00 +0000 (UTC) Date: Fri, 26 Jan 2018 22:27:00 +0000 (UTC) From: "Gour Saha (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-7781) Update YARN-Services-Examples.md to be in sync with the latest code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-7781?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16341= 700#comment-16341700 ]=20 Gour Saha commented on YARN-7781: --------------------------------- Thanks [~jianhe] for the patch. Quick comments - 1. In YarnServiceAPI.md: Seems like "|false|string||" moved to a new line instead of being on the sa= me line for "principal_name". 2. Fix the 2 whitespace errors. 3. In YARN-Services-Examples.md in the below section, is the "name" attribu= te with value "hello" required? The URI path already says that it is for th= e component name hello. So we should not need anything other than "number_o= f_containers" in the body. {noformat} ### Update to flex up/down the number of containers (instances) of a compon= ent of a service PUT URL - http://localhost:8088/app/v1/services/hello-world/components/hell= o ##### PUT Request JSON ```json { "name": "hello", "number_of_containers": 3 } {noformat} 4. Don't we support a PUT URL =E2=80=93 [http://localhost:8088/app/v1/servi= ces/hello-world] where we can pass a single JSON and flex multiple componen= ts in a single API call? This is what I mentioned in point 1 in this jira d= escription. > Update YARN-Services-Examples.md to be in sync with the latest code > ------------------------------------------------------------------- > > Key: YARN-7781 > URL: https://issues.apache.org/jira/browse/YARN-7781 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Gour Saha > Assignee: Jian He > Priority: Major > Attachments: YARN-7781.01.patch > > > Update YARN-Services-Examples.md to make the following additions/changes: > 1. Add an additional URL and PUT Request JSON to support flex: > Update to flex up/down the no of containers (instances) of a component of= a service > PUT URL =E2=80=93 http://localhost:9191/app/v1/services/hello-world > PUT Request JSON > {code} > { > "components" : [ { > "name" : "hello", > "number_of_containers" : 3 > } ] > } > {code} > 2. Modify all occurrences of /ws/ to /app/ -- 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