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 888B82004F1 for ; Wed, 30 Aug 2017 19:05:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 86E8116982E; Wed, 30 Aug 2017 17: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 CD7C3169827 for ; Wed, 30 Aug 2017 19:05:21 +0200 (CEST) Received: (qmail 98296 invoked by uid 500); 30 Aug 2017 17:05:20 -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 98283 invoked by uid 99); 30 Aug 2017 17:05:20 -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; Wed, 30 Aug 2017 17:05:20 +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 AD98CC199F for ; Wed, 30 Aug 2017 17:05:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.942 X-Spam-Level: *** X-Spam-Status: No, score=3.942 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id p9xS3KRIRGgA for ; Wed, 30 Aug 2017 17:05:17 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D014D5FBB1 for ; Wed, 30 Aug 2017 17:05:11 +0000 (UTC) Received: by mail-qk0-f169.google.com with SMTP id l65so30619602qkc.0 for ; Wed, 30 Aug 2017 10:05:11 -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=wg4ut4KV51yCF+1Xq/kjk+29VLYM/aHFye9BoCnntVM=; b=ebHxCLV+w6Yj0QbRCeDUiiU1ZpcO0Wg6aostXoneLEydcTJhx++k6v8CaoFx33Aqxl hz0QCr4vSfprpNR0WV6Wl3bMkLeeX9k675M3PKbEUcVrwL2/LRxMXLwj6gUKzVxFlVSf c60/e7iP28JXmFtChAViYH89Jxq5NEqfPRWFt4HxeBod6bOEklyNSvC+Z9D7339bS34I GeY66DmtTTztNY3YxQEbBQeXc//9Z8Mbci1cNE5hS8w8mgPL5uhDZPPrl1oVLC6fNKjL JIkYQSvxTK/7EcDY/DpVYhrwFOkmjgDfHRVFhkVSEFdPULi/ux99/jAK3ueLcu9UVdel kzvg== 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=wg4ut4KV51yCF+1Xq/kjk+29VLYM/aHFye9BoCnntVM=; b=ko9BLgXq8OzCYQWykdne1JJg9MybHgrhRtoKE3CC3KTyXfea6CFHse6cjEr+WmPCjP 5nfl55KrWsAyudcIODv3pc1OpTiP9JYU3NQZSEK0DJclnCkKgHZSASCdefz7yaogtrgt BV03/nks5ZeL2sIAKAwSjiumFFzJInpt3uTT7QVo3GqTUgFAcSJwLjxPVsYQm2lgGWua l8vi0aA8pQ7voAAnvgZs1gzyd4NT0RWP5MhIoCA86jAbes43kZ46NF45np+ve+BB8k5j Mn3qcLGve6+W/sXBVkHKNfnGE72vWZE/52u2Q1We3fMJ2tBWjqOhWukR+TYNGioLhkwa Af1A== X-Gm-Message-State: AHYfb5gPl+5KNHrCNrEEx5GPfkmhzuuWUD2tiCR8mhag8fnNSU6xKEBs rAo0jSuuOY2f7sz8MufJAQ85QIQ3vQ== X-Received: by 10.55.57.77 with SMTP id g74mr11123998qka.214.1504112709469; Wed, 30 Aug 2017 10:05:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.75.139 with HTTP; Wed, 30 Aug 2017 10:05:09 -0700 (PDT) In-Reply-To: <1504095687623-0.post@n3.nabble.com> References: <1504095687623-0.post@n3.nabble.com> From: =?UTF-8?Q?Daniel_Jeli=C5=84ski?= Date: Wed, 30 Aug 2017 19:05:09 +0200 Message-ID: Subject: Re: Need help with Row Key design To: user@hbase.apache.org Content-Type: multipart/alternative; boundary="001a1145a8dec00d4e0557fb87b1" archived-at: Wed, 30 Aug 2017 17:05:22 -0000 --001a1145a8dec00d4e0557fb87b1 Content-Type: text/plain; charset="UTF-8" Have you considered Solr or Elasticsearch? HBase is a rather poor choice for most UI needs. It is great for running analytics/reports where all rows need to be scanned, and for random access by key. User interfaces usually require just a few top records to display, plus they usually need filtering and sorting on different fields. Solr excels in these workloads, while HBase would need either secondary indexes (which are not implemented in HBase, but there are some tools that allow this), or map/reduce jobs, which are unlikely to satisfy your UI users, as the take too long to run. Regards, Daniel 2017-08-30 14:21 GMT+02:00 deepaksharma25 : > Hello, > I am new to HBase DB and currently evaluating it for one of the requirement > we have from Customer. > We are going to write TBs of data in HBase daily and we need to fetch > specifc data based on filter. > > I came to know that it is very important to design the row key in such a > manner, so that it effectively uses it to fetch the data from the specific > node instead of scanning thru all the records in the database, based on the > type of row key we design. > > The problem with our requirement is that, we don't have any specific field > which can be used to define the rowkey. We have around 7-8 fields available > on the frontend, which can be used to filter the records from HBase. > > Can you please suggest, what should be the design of my row key, which will > help in faster retrieval of the data from TBs of data? > Attaching here the sample screen I am referring in this > > . > > Thanks, > Deepak Sharma > > > > -- > Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User- > f4020416.html > --001a1145a8dec00d4e0557fb87b1--