Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 996A1186A7 for ; Tue, 1 Dec 2015 09:41:26 +0000 (UTC) Received: (qmail 53560 invoked by uid 500); 1 Dec 2015 09:41:18 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 53489 invoked by uid 500); 1 Dec 2015 09:41:18 -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 53477 invoked by uid 99); 1 Dec 2015 09:41:17 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 09:41:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 849B31A0C6E for ; Tue, 1 Dec 2015 09:41:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.129 X-Spam-Level: **** X-Spam-Status: No, score=4.129 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, FREEMAIL_REPLY=1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id pD-MJx9UbM4E for ; Tue, 1 Dec 2015 09:41:15 +0000 (UTC) Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com [209.85.160.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 0D64A2122C for ; Tue, 1 Dec 2015 09:41:15 +0000 (UTC) Received: by ykdr82 with SMTP id r82so454484ykd.3 for ; Tue, 01 Dec 2015 01:41:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=my7NHd8bzyO2y0VJbxAmGD8L423BeYOjVMKxZlaR/0Y=; b=LLdCC/SEA0hdLDXu9wkFSlKz9Kbs+trl2IJrsmW9aE5VIXf2scJwKmzPwdxxI8tUgy ghKsL0nD/vJgdYAS3x5Nts2PtJouClR7Q+qbEhN+p5T7X+B2g7VK2TPA6Q99h3cpVuT1 23G3JqL0xDj/1PkspUw0TzKX3FYidOOi1qM7csiFP06MAiHuWGHcw5jIHLkzf0KUPxPp C1wmh3osLGswTgc5sJA2VvjZaoa+Bhs0lPyHvuTGaU9qBuAljAgXlSN+h9C4McWSlZgh sYodj6PqkCRESnggigFfVI6zo7uN6Dxii+GP+kx3cctSeJ+O+4GJLgkLYK0YqX3BBI0k D2Ow== MIME-Version: 1.0 X-Received: by 10.129.114.10 with SMTP id n10mr57236996ywc.0.1448962874133; Tue, 01 Dec 2015 01:41:14 -0800 (PST) Received: by 10.37.22.8 with HTTP; Tue, 1 Dec 2015 01:41:14 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Dec 2015 17:41:14 +0800 Message-ID: Subject: Re: Row Versions in Apache Hbase From: Heng Chen To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a1147389467d35c0525d2f518 --001a1147389467d35c0525d2f518 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hm.., is there anything unique like userId to represent one people=EF=BC=9F 2015-12-01 16:33 GMT+08:00 Rajeshkumar J : > Is there any other way to store only id becoz there may be new rows with > the same name like > > 1212 | xxxx | 20 > 1212 | yyyy | 21 > 1212 | xxxx | 22 > > > On Tue, Dec 1, 2015 at 1:59 PM, Heng Chen > wrote: > > > Yeah, if you want to get all records about 1212, just scan rows with > > prefix 1212 > > > > 2015-12-01 16:27 GMT+08:00 Rajeshkumar J : > > > > > so you want me to design row-key value by appending name column value > to > > > the rowkey > > > > > > On Tue, Dec 1, 2015 at 1:19 PM, Heng Chen > > > wrote: > > > > > > > So, why not > > > > > > > > 1212-xxx 20 > > > > 1212-yyy 21 > > > > 1212-zzz 22 > > > > > > > > 2015-12-01 15:33 GMT+08:00 Rajeshkumar J < > rajeshkumarit8292@gmail.com > > >: > > > > > > > > > Hi > > > > > > > > > > I meant like below is this possible > > > > > > > > > > Rowkey | column family > > > > > > > > > > Name | Age > > > > > > > > > > 1212 | xxxx | 20 > > > > > 1212 | yyyy | 21 > > > > > 1212 | zzzz | 22 > > > > > > > > > > On Tue, Dec 1, 2015 at 12:03 PM, Heng Chen < > heng.chen.1986@gmail.com > > > > > > > > wrote: > > > > > > > > > > > why not > > > > > > > > > > > > 1212 | 10, 11, 12, 13, 14, 15, 16, 27, 28 ? > > > > > > > > > > > > 2015-12-01 14:29 GMT+08:00 Rajeshkumar J < > > > rajeshkumarit8292@gmail.com > > > > >: > > > > > > > > > > > > > Hi Ted, > > > > > > > > > > > > > > This is my use case. I have to store values like this is it > > > > possible? > > > > > > > > > > > > > > RowKey | Values > > > > > > > > > > > > > > 1212 | 10,11,12 > > > > > > > > > > > > > > 1212 | 13, 14, 15 > > > > > > > > > > > > > > 1212 | 16,27,28 > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > On Mon, Nov 30, 2015 at 10:40 PM, Ted Yu > > > > wrote: > > > > > > > > > > > > > > > Have you read > http://hbase.apache.org/book.html#rowkey.design > > ? > > > > > > > > > > > > > > > > bq. we can store more than one row for a row-key value. > > > > > > > > > > > > > > > > Can you clarify your intention / use case ? If row key is t= he > > > same, > > > > > key > > > > > > > > values would be in the same row. > > > > > > > > > > > > > > > > On Mon, Nov 30, 2015 at 8:30 AM, Rajeshkumar J < > > > > > > > > rajeshkumarit8292@gmail.com> > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > I am new to Apache Hbase and I know that in a table whe= n > we > > > try > > > > > to > > > > > > > > insert > > > > > > > > > row key value which is already present either new value i= s > > > > > discarded > > > > > > or > > > > > > > > > updated. Also I came across row version through which we > can > > > > store > > > > > > > > > different versions of row key based on timestamp. Any one > > > correct > > > > > me > > > > > > > if I > > > > > > > > > am wrong? Also I need to know is there any way we can sto= re > > > more > > > > > than > > > > > > > one > > > > > > > > > row for a row-key value. > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --001a1147389467d35c0525d2f518--