Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 47823 invoked from network); 10 Nov 2009 15:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 15:16:23 -0000 Received: (qmail 83836 invoked by uid 500); 10 Nov 2009 15:16:22 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 83779 invoked by uid 500); 10 Nov 2009 15:16:22 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 83769 invoked by uid 99); 10 Nov 2009 15:16:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 15:16:22 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [79.98.16.206] (HELO bihar.codelutin.net) (79.98.16.206) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 15:16:20 +0000 Received: from localhost (bihar.codelutin.com [79.98.16.206]) by bihar.codelutin.net (Postfix) with ESMTP id 0376C61BC4 for ; Tue, 10 Nov 2009 16:15:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bihar.codelutin.net Received: from bihar.codelutin.net ([79.98.16.206]) by localhost (bihar.codelutin.com [79.98.16.206]) (amavisd-new, port 10024) with ESMTP id 1QTTFYF0gfWA for ; Tue, 10 Nov 2009 16:15:53 +0100 (CET) Received: from intranet.codelutin.home (seb44-1-88-163-78-202.fbx.proxad.net [88.163.78.202]) by bihar.codelutin.net (Postfix) with ESMTP id B51D4629A8 for ; Tue, 10 Nov 2009 16:15:53 +0100 (CET) Received: from eleonore.codelutin.home (eleonore.codelutin.home [192.168.99.130]) by intranet.codelutin.home (Postfix) with ESMTP id 80ECD103EF for ; Tue, 10 Nov 2009 16:15:53 +0100 (CET) Date: Tue, 10 Nov 2009 16:07:29 +0100 From: Julien Ruchaud To: hbase-user@hadoop.apache.org Subject: Re: Strore list Message-ID: <20091110160729.38f716b3@eleonore.codelutin.home> In-Reply-To: <31a243e70911100650p150645b2p4002cb037f7ffa12@mail.gmail.com> References: <20091110104115.4db9d4e0@eleonore.codelutin.home> <31a243e70911100650p150645b2p4002cb037f7ffa12@mail.gmail.com> Organization: Code Lutin X-Mailer: Claws Mail 3.3.0 (GTK+ 2.12.12; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Tue, 10 Nov 2009 06:50:46 -0800, Jean-Daniel Cryans a =C3=A9crit : > Julien, >=20 > Depends on your usage pattern. For example a list with 100,000+ values > where you only access one at a time (like to do joins) should be > stored in family where the qualifier is the key and the value is > either again the key or something more useful.=20 >=20 > If you have small lists that you use as a whole, you can consider > serializing them in a single cell with something like JSON, YAML, > protobuf, etc. In fact, I can need both cases. My list can contain 3 or 1,000,000 values... What would be the best compromise ? In the first case, do you mean storing values like this ? a) Is it possible something like that ? key =3D value 1 key =3D value 2 b) Difficult to maintain (update, delete an element, ...) key[1] =3D value 1 key[2] =3D value 2 c) ?? key1 =3D value 1, key2 key2 =3D value 2 d) other ... Julien >=20 > J-D >=20 > On Tue, Nov 10, 2009 at 1:41 AM, Julien Ruchaud > wrote: > > Hi all, > > > > How to store a list with hbase ? Do I have to serialize list to > > bytes before storing or shall I put multi-values in colunm ? What > > is the best way ? > > > > Thanks, > > > > Julien > >