From yarn-issues-return-155993-apmail-hadoop-yarn-issues-archive=hadoop.apache.org@hadoop.apache.org Mon Oct 22 19:57:04 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 2D605186F1 for ; Mon, 22 Oct 2018 19:57:04 +0000 (UTC) Received: (qmail 70347 invoked by uid 500); 22 Oct 2018 19:57:03 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 70260 invoked by uid 500); 22 Oct 2018 19:57:03 -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 70106 invoked by uid 99); 22 Oct 2018 19:57:03 -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; Mon, 22 Oct 2018 19:57:03 +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 2EA4AC20DC for ; Mon, 22 Oct 2018 19:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KaK34xn69WtF for ; Mon, 22 Oct 2018 19:57:02 +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 015E15F4FF for ; Mon, 22 Oct 2018 19:57:02 +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 4971DE262F for ; Mon, 22 Oct 2018 19:57:01 +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 C426C252AD for ; Mon, 22 Oct 2018 19:57:00 +0000 (UTC) Date: Mon, 22 Oct 2018 19:57:00 +0000 (UTC) From: "Eric Yang (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-8542) Yarn Service: Add component name to container json 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-8542?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16659= 605#comment-16659605 ]=20 Eric Yang commented on YARN-8542: --------------------------------- [~csingh] Thank you for the patch. +1 for patch 002, will commit shortly. > Yarn Service: Add component name to container json > -------------------------------------------------- > > Key: YARN-8542 > URL: https://issues.apache.org/jira/browse/YARN-8542 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Chandni Singh > Assignee: Chandni Singh > Priority: Major > Attachments: YARN-8542.001.patch, YARN-8542.002.patch > > > GET=C2=A0app/v1/services/{{service-name}}/component-instances returns a l= ist of containers with YARN-8299. > {code:java} > [ > { > "id": "container_1531508836237_0001_01_000003", > "ip": "192.168.2.51", > "hostname": "HW12119.local", > "state": "READY", > "launch_time": 1531509014497, > "bare_host": "192.168.2.51", > "component_instance_name": "sleeper-1" > }, > { > "id": "container_1531508836237_0001_01_000002", > "ip": "192.168.2.51", > "hostname": "HW12119.local", > "state": "READY", > "launch_time": 1531509013492, > "bare_host": "192.168.2.51", > "component_instance_name": "sleeper-0" > } > ]{code} > {{component_name}} is not part of container json, so it is hard to tell w= hich component an instance belongs to.=20 > To fix this, will change the format of returned containers to: > {code:java} > [ > { > "name": "ping", > "containers": [ > { > "bare_host": "eyang-4.openstacklocal", > "component_instance_name": "ping-0", > "hostname": "ping-0.qqq.hbase.ycluster", > "id": "container_1531765479645_0002_01_000002", > "ip": "172.26.111.21", > "launch_time": 1531767377301, > "state": "READY" > }, > { > "bare_host": "eyang-4.openstacklocal", > "component_instance_name": "ping-1", > "hostname": "ping-1.qqq.hbase.ycluster", > "id": "container_1531765479645_0002_01_000007", > "ip": "172.26.111.21", > "launch_time": 1531767410395, > "state": "RUNNING_BUT_UNREADY" > } > ] > }, > { > "name": "sleep", > "containers": [ > { > "bare_host": "eyang-5.openstacklocal", > "component_instance_name": "sleep-0", > "hostname": "sleep-0.qqq.hbase.ycluster", > "id": "container_1531765479645_0002_01_000004", > "ip": "172.26.111.20", > "launch_time": 1531767377710, > "state": "READY" > }, > { > "bare_host": "eyang-4.openstacklocal", > "component_instance_name": "sleep-1", > "hostname": "sleep-1.qqq.hbase.ycluster", > "id": "container_1531765479645_0002_01_000005", > "ip": "172.26.111.21", > "launch_time": 1531767378303, > "state": "READY" > } > ] > } > ]{code} > =C2=A0 -- 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