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 94D73FA9D for ; Fri, 26 Apr 2013 19:50:10 +0000 (UTC) Received: (qmail 23290 invoked by uid 500); 26 Apr 2013 19:50:08 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 23202 invoked by uid 500); 26 Apr 2013 19:50:08 -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 23194 invoked by uid 99); 26 Apr 2013 19:50:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 19:50:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cgandevia@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-wg0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 19:50:03 +0000 Received: by mail-wg0-f49.google.com with SMTP id x12so2337907wgg.28 for ; Fri, 26 Apr 2013 12:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=cNUMG8mH8KKM7pkUmS5OSH9LtXseAJu46621DcPm00Q=; b=y8sRC+Xl+VPbQznwnNIKphlOD/xnCH5lvPnXQnwEF3kiyvQ1IjkLivHR4cZqmUC7TB Lg/k5strleFcLx771OWQJfS02+gU65e7flTMXfF82gXefdlP8hCJs092L+tCsWRHFve7 E33w9lko2GWjBSh3TLmp7HU3UnSwf306z448XtAcjY74bi+KqXMQXnhupIKpHup9fo+Q ZfJx5JrkkLfKU2P4pb6JCX/hguaIW1X+4ABUhFv9FH6tiRxtvm+gahpLeQQbvfL35iqV uo2cH66PTUJtHlIs+zvaGi8O3MaYJaXBlRlry7upCBmi248VE5+Uj6G79Kt83LNqkhER msKQ== X-Received: by 10.180.85.103 with SMTP id g7mr6137747wiz.23.1367005781660; Fri, 26 Apr 2013 12:49:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.234.163 with HTTP; Fri, 26 Apr 2013 12:49:01 -0700 (PDT) From: Cameron Gandevia Date: Fri, 26 Apr 2013 12:49:01 -0700 Message-ID: Subject: Schema Design Question To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d043bdce6059f9704db48d63c X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bdce6059f9704db48d63c Content-Type: text/plain; charset=UTF-8 Hi I am new to HBase, I have been trying to POC an application and have a design questions. Currently we have a single table with the following key design jobId_batchId_bundleId_uniquefileId This is an offline processing system so data would be bulk loaded into HBase via map/reduce jobs. We only need to support report generation queries using map/reduce over a batch (And possibly a single column filter) with the batchId as the start/end scan key. Once we have finished processing a job we are free to remove the data from HBase. We have varied workloads so a job could be made up of 10 rows, 100,000 rows or 1 billion rows with the average falling somewhere around 10 million rows. My question is related to pre-splitting. If we have a billion rows all with the same batchId (Our map/reduce scan key) my understanding is we should perform pre-splitting to create buckets hosted by different regions. If a jobs workload can be so varied would it make sense to have a single table containing all jobs? Or should we create 1 table per job and pre-split the table for the given workload? If we had separate table we could drop them when no longer needed. If we didn't have a separate table per job how should we perform splitting? Should we choose our largest possible workload and split for that? even though 90% of our jobs would fall in the lower bound in terms of row count. Would we experience any issue purging jobs of varying sizes if everything was in a single table? any advice would be greatly appreciated. Thanks --f46d043bdce6059f9704db48d63c--