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 559CD200C8C for ; Tue, 6 Jun 2017 20:24:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4AEC1160BC6; Tue, 6 Jun 2017 18:24:28 +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 9309A160BB7 for ; Tue, 6 Jun 2017 20:24:27 +0200 (CEST) Received: (qmail 13866 invoked by uid 500); 6 Jun 2017 18:24:26 -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 13855 invoked by uid 99); 6 Jun 2017 18:24:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 18:24:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 58834C3465 for ; Tue, 6 Jun 2017 18:24:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mnNKDV2WwU8c for ; Tue, 6 Jun 2017 18:24:25 +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 19C4D5FC12 for ; Tue, 6 Jun 2017 18:24:20 +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 3F251E0DAA for ; Tue, 6 Jun 2017 18:24:19 +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 765E521E11 for ; Tue, 6 Jun 2017 18:24:18 +0000 (UTC) Date: Tue, 6 Jun 2017 18:24:18 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6199) Support for listing flows with filter userid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Jun 2017 18:24:28 -0000 [ https://issues.apache.org/jira/browse/YARN-6199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039402#comment-16039402 ] Varun Saxena commented on YARN-6199: ------------------------------------ bq. A known issue is that since it is using a regex string comparator, it gives results even when the specified user id is only a substring of what's in the table. Any suggestion to address this? We currently use Separator#QUALIFIERS (or ! character) to separate different segments in a rowkey. We can probably put ! characters before and after userid to ensure full match happens. Also should we use SubstringComparator instead of RegexStringComparator? Regex matches might be slower. I found this issue HBASE-9428 which says Regex filters are at least an order of magnitude slower since 0.94.3. I am not sure if it is as good as substring matching in the version we are using or not. Either ways SubstringComparator should serve our use case. However to avoid full table scan we should use userid with suitable daterange filter. This can be left as a note in the documentation in the documentation JIRA. > Support for listing flows with filter userid > -------------------------------------------- > > Key: YARN-6199 > URL: https://issues.apache.org/jira/browse/YARN-6199 > Project: Hadoop YARN > Issue Type: Sub-task > Components: timelinereader > Reporter: Rohith Sharma K S > Assignee: Haibo Chen > Attachments: YARN-6199.00.patch > > > Currently */flows* API retrieves flow entities for all the users by default. It is required to provide filter user i.e */flows?user=rohith* . This is critical filter in secured environment. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org