Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 586E3200B87 for ; Mon, 19 Sep 2016 11:05:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 570E5160ADC; Mon, 19 Sep 2016 09:05:22 +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 A57EE160ABC for ; Mon, 19 Sep 2016 11:05:21 +0200 (CEST) Received: (qmail 49166 invoked by uid 500); 19 Sep 2016 09:05:20 -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 49136 invoked by uid 99); 19 Sep 2016 09:05:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 09:05:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8DB722C0D5A for ; Mon, 19 Sep 2016 09:05:20 +0000 (UTC) Date: Mon, 19 Sep 2016 09:05:20 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5577) [Atsv2] Document object passing in infofilters with an example MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 09:05:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502784#comment-15502784 ] Varun Saxena commented on YARN-5577: ------------------------------------ Sorry [~rohithsharma], I was on leave so didn't commit it. Will do so shortly. I will commit it to trunk as its documentation related change. Will be brought in ATSv2 branch when we do trunk rebase. > [Atsv2] Document object passing in infofilters with an example > -------------------------------------------------------------- > > Key: YARN-5577 > URL: https://issues.apache.org/jira/browse/YARN-5577 > Project: Hadoop YARN > Issue Type: Bug > Components: timelinereader, timelineserver > Reporter: Rohith Sharma K S > Assignee: Rohith Sharma K S > Labels: documentation > Attachments: YARN-5577.patch > > > In HierarchicalTimelineEntity, setparent/addChild allows to set parent/child entities at INFO level. The key is an string and value as an object. > Like below, for YARN_CONTAINER entity parent entity set for application. > {code} > "SYSTEM_INFO_PARENT_ENTITY": { > "type": "YARN_APPLICATION", > "id": "application_1471931266232_0024" > } > {code} > But to use infofilter on entity type YARN_CONTAINER for an specific applicationId, IIUC there is no way to pass object as value in infofilter. > To make easier retrieval either > # publish parent/child entity id and type as string rather that object like below > {code} > "SYSTEM_INFO_PARENT_ENTITY_TYPE": "YARN_APPLICATION" > "SYSTEM_INFO_PARENT_ENTITY_ID":"application_1471931266232_0024" > {code} > OR > # Add ability to provide object as filter with below format like {{infofilters=SYSTEM_INFO_PARENT_ENTITY eq ((type eq YARN_APPLICATION) AND (id eq application_1471931266232_0024))}} > I believe 2nd approach will be well applicable for any entities. But I am not sure does HBase supports such a custom filters while scanning a table. > 1st approaches will be much easier to change. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org