Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 6898 invoked from network); 22 Feb 2011 18:33:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 18:33:17 -0000 Received: (qmail 74345 invoked by uid 500); 22 Feb 2011 18:33:16 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 73333 invoked by uid 500); 22 Feb 2011 18:33:13 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 73320 invoked by uid 99); 22 Feb 2011 18:33:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 18:33:12 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jdcryans@gmail.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 18:33:04 +0000 Received: by fxm5 with SMTP id 5so2956015fxm.14 for ; Tue, 22 Feb 2011 10:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=HQ1NXzHB5zhThh4gTld1m4L86x7kucY9hm19IsdP++4=; b=q+VRBsVLwXQwuJ5D1/QEWI6YKlizSl+AY5z+S+bA17w4MwxLb8gTAF7DNJaGB2b5Z8 vvRhgBgcDU2bFGREBugNaaBuljL4qf5CiEL+2kAOXb3zLFRugnUL9xpruEepz2dbjQy2 IxeD3v5cHcSxLng1g6/7dCtn//tCLJg87czmo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=bcc:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=H84jNwK2hfISPrfHAOhlHQ4Ys2tm0n9eJ7FEFsom4QQzgd3/X3yy+vcVtKGH0JaZyy PdsiaIrcSe3j7LQr94TKY5vIDXCZFkfL/zaP9XhjjNLzmR3tF5oZNTL7R3MV+jBwFVog 6o5Fdryjy3a6FOrm7rl0jz1NYQp33KTVrO4d4= MIME-Version: 1.0 Received: by 10.223.83.208 with SMTP id g16mr3803612fal.52.1298399089684; Tue, 22 Feb 2011 10:24:49 -0800 (PST) Sender: jdcryans@gmail.com Received: by 10.223.83.204 with HTTP; Tue, 22 Feb 2011 10:24:49 -0800 (PST) In-Reply-To: References: Date: Tue, 22 Feb 2011 13:24:49 -0500 X-Google-Sender-Auth: 02fknAQqdVuIiv33wCfkwYKS774 Message-ID: Subject: Re: hbase table creation From: Jean-Daniel Cryans To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org (moving to the user ML) in the shell (bin/hbase shell), type: help "create" And then you will have the help for creating table along with examples. Regarding the actual modeling of your table, putting the userid as the row key (no need for a family) could be a viable option but the rest seems weird. Maybe a better option would be to have a very tall table, and followup comments would have a row key that would place them directly next to the commented comment. Something like eventid_comment1 eventid_comment1_comment1 eventid_comment1_comment2 eventid_comment1_comment2_comment1 eventid_comment2 eventid_comment2_comment1 This way a single scan can return all the comments regarding the event that's originally being commented on, while enabling deep levels of comments. Then you only need 1 family that describes all the attributes of that comments (userid, whatnot). I would try to use some sort of data in the row key component of a comment, not numbering like in my example. Also watch out for the size of those row keys, the bigger the more space every value will take. J-D On Tue, Feb 22, 2011 at 6:54 AM, Davison wrote: > i am new to hbase and hadoop. Any how i have succeeded in setting up a hadoop > cluster which consists of 3 machines. Now i need some help on building up the > database. I have a table "comments" contains fields(column families) > 1)user id > 2)comments > 3)comments on comments(which can be more than one) and a status field to the > same say, > > Could any one help me out to build the same using hbase/shell?? > > Regards > >