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 D8826200C68 for ; Wed, 3 May 2017 15:50:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D7458160BB5; Wed, 3 May 2017 13:50:41 +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 29377160BAA for ; Wed, 3 May 2017 15:50:41 +0200 (CEST) Received: (qmail 25591 invoked by uid 500); 3 May 2017 13:50:39 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 25576 invoked by uid 99); 3 May 2017 13:50:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 13:50:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EFA86191B9F for ; Wed, 3 May 2017 13:50:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XP4xW7oPBalu for ; Wed, 3 May 2017 13:50:36 +0000 (UTC) Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.161.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 43B065FB2C for ; Wed, 3 May 2017 13:50:36 +0000 (UTC) Received: by mail-yw0-f182.google.com with SMTP id u70so85161988ywe.2 for ; Wed, 03 May 2017 06:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Xo0LGuohqqDOk3iv9CgZYAjvwIcWkIe856+M4X3+uB0=; b=AgnHLR/yf9nLOhD8WrxHl4IQTJCICmS2XLVADI3fxlEw+LsSVasf1aEBZYlN+oxPHT cL4bHJyEmS1EoIDvi+CJ6bn6OkAMwYY45e1MRKRtMMzFRk8yvYNH0g+mpUUk0RhgnA8Y oANsKp/TSZdQ70tolaciGKc/ySPIcXaNREDkip442ZQgMYrnYq3HELIIH9Gv7B3gaeha 2f6KsgI1hYRnU6OQRpNrKS/UHtCzsjenNTgwjtCw4R+XgOKZATj6/HCsVZhgJB9VTldg kKYCLTfMUTmvIkmBrMkv0mhNafhgIMQJqEqPNFzmLRp5npor2FLoLTiNxs5Xg+T9qL2y u4ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Xo0LGuohqqDOk3iv9CgZYAjvwIcWkIe856+M4X3+uB0=; b=ULwxkjNaAy7GScBZxpzlvP19sKydNLZyeTUor2wnA+Ufoo66LjjXGMWUXG9WmLk7bO TFmnsoqiJWcRhkjbq+roL0xrIrYJz6L6DxzLQFG/dSIL3+YMShbxdtSCR6cvgZ3cglrH 3AzgjlV3vSWjZHcZAzaXJWzyM2B59s3UeVO2NYdjsSK9JoiBoRSuQXeGqSutsjXkDByg CR/1WlRIfsUutyO+2Yf4u4B/lqL6N04OX3StbuoNiwD37r+84j4s3qRB5ZyUZSGv/Og+ 5bpVvHQWEpo0SheGCsh7btxWB3zh/fgVr8vBdZaKyuZQFxu+5tcsakjFCwYE3Mkb+Cmc Du9w== X-Gm-Message-State: AN3rC/5vHWVC/hTrzVUZo2RJIrcPiu13w0C8b/i7LYPE6uosCtgODHgO 3MWfQbZrzGnyWG6OfYtWuYt0+/TMotQj X-Received: by 10.129.130.6 with SMTP id s6mr32198340ywf.51.1493819435575; Wed, 03 May 2017 06:50:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.45.91 with HTTP; Wed, 3 May 2017 06:50:35 -0700 (PDT) In-Reply-To: References: <88A1810E-464E-47C7-AC12-1CED6A3A6E67@googlemail.com> From: Ted Yu Date: Wed, 3 May 2017 06:50:35 -0700 Message-ID: Subject: Re: Scan time increasing linearly To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=94eb2c07c35ed0efcf054e9ef03b archived-at: Wed, 03 May 2017 13:50:42 -0000 --94eb2c07c35ed0efcf054e9ef03b Content-Type: text/plain; charset=UTF-8 Lydia: bq. including a prefix-filter and some column filter. Are you expecting roughly same rate of filtering across the tables ? Which hbase / hadoop release are you using ? Cheers On Wed, May 3, 2017 at 6:32 AM, Kevin O'Dell wrote: > Hi Lydia, > > Welcome to the wonderful world of HBase! I don't think it is wrong that > you are seeing linear results from doing a scan. When doing a scan HBase > will collect X amount of rows to return to the client. X being the value of > your scan cache. If each round trip grabs 100 rows and takes 1 second to do > it, then it is safe to assume time will grow in a linear nature. The good > news is HBase is much faster than the example I gave. I would recommend > looking at how much you are caching and raise that value, though I am not > surprised your scans are growing in a linear nature as the scan function is > rather linear itself. Does this make sense? > > Also I may be completely wrong so I will defer to anyone else's expert > information. > > On Wed, May 3, 2017 at 6:51 AM, Lydia wrote: > > > Hi, > > > > I would like to know if my query times seem appropriate since I do not > > have a lot experience with HBase. > > > > I have three tables - stored in HDFS, on one machine: > > table1: 5 million rows > > table2: 15 million rows > > table3: 90 million rows > > > > I do a scan using the Java API including a prefix-filter and some column > > filter. > > My rowkeys are encoded with geohashes. > > > > Execution Times: > > table1: ~ 3.072 s > > table2: ~ 10.117 s > > table3: ~ 60.00 s > > > > It seems really odd to me that the execution time is increasing linear > > with the amount of rows! > > Am I doing something terribly wrong? > > > > Thanks in advance! > > Best regards, > > Lydia > > > > > -- > Kevin O'Dell > Field Engineer > 850-496-1298 | Kevin@rocana.com > @kevinrodell > > --94eb2c07c35ed0efcf054e9ef03b--