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 49B06200B9D for ; Thu, 8 Sep 2016 07:30:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48682160AC1; Thu, 8 Sep 2016 05:30:23 +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 90BD9160ACF for ; Thu, 8 Sep 2016 07:30:22 +0200 (CEST) Received: (qmail 21902 invoked by uid 500); 8 Sep 2016 05:30:21 -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 21862 invoked by uid 99); 8 Sep 2016 05:30:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2016 05:30:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AEDB32C1B83 for ; Thu, 8 Sep 2016 05:30:20 +0000 (UTC) Date: Thu, 8 Sep 2016 05:30:20 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-5585) [Atsv2] Add a new filter fromId in REST endpoints MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Sep 2016 05:30:23 -0000 [ https://issues.apache.org/jira/browse/YARN-5585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15472837#comment-15472837 ] Varun Saxena edited comment on YARN-5585 at 9/8/16 5:29 AM: ------------------------------------------------------------ IIUC, Tez DAG ID is a combination of YARN App ID and DAG sequence ID. Isnt this DAG sequence ID monotonically increasing and assigned to DAGs' as they are run and assigned to them in sequence ? I was assuming they were. That is why I suggested storing DAG ID as 16 bytes (8 bytes of inverted cluster timsetamp from app id + 4 bytes of inverted seq id from app id + 4 bytes of inverted DAG seq number). Padding in this case wont be required. Anyways other solutions have been proposed and we can come back to this only if necessary. Or maybe we can have both above solution and below one as well. was (Author: varun_saxena): IIUC, Tez DAG ID is a combination of YARN App ID and DAG sequence ID. Isnt this DAG sequence ID monotonically increasing and assigned to DAGs' as they are run in sequence ? I was assuming they were. That is why I suggested storing DAG ID as 16 bytes (8 bytes of inverted cluster timsetamp from app id + 4 bytes of inverted seq id from app id + 4 bytes of inverted DAG seq number). Padding in this case wont be required. Anyways other solutions have been proposed and we can come back to this only if necessary. Or maybe we can have both above solution and below one as well. > [Atsv2] Add a new filter fromId in REST endpoints > ------------------------------------------------- > > Key: YARN-5585 > URL: https://issues.apache.org/jira/browse/YARN-5585 > Project: Hadoop YARN > Issue Type: Sub-task > Components: timelinereader > Reporter: Rohith Sharma K S > Assignee: Rohith Sharma K S > Attachments: YARN-5585.v0.patch > > > TimelineReader REST API's provides lot of filters to retrieve the applications. Along with those, it would be good to add new filter i.e fromId so that entities can be retrieved after the fromId. > Example : If applications are stored database, app-1 app-2 ... app-10. > *getApps?limit=5* gives app-1 to app-10. But to retrieve next 5 apps, it is difficult. > So proposal is to have fromId in the filter like *getApps?limit=5&&fromId=app-5* which gives list of apps from app-6 to app-10. > This is very useful for pagination in web UI. -- 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