Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 217B3969D for ; Wed, 11 Jan 2012 21:09:12 +0000 (UTC) Received: (qmail 50817 invoked by uid 500); 11 Jan 2012 21:09:11 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 50727 invoked by uid 500); 11 Jan 2012 21:09:10 -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 50707 invoked by uid 99); 11 Jan 2012 21:09:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2012 21:09:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of doug.meil@explorysmedical.com designates 213.199.154.143 as permitted sender) Received: from [213.199.154.143] (HELO DB3EHSOBE005.bigfish.com) (213.199.154.143) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2012 21:09:02 +0000 Received: from mail109-db3-R.bigfish.com (10.3.81.243) by DB3EHSOBE005.bigfish.com (10.3.84.25) with Microsoft SMTP Server id 14.1.225.23; Wed, 11 Jan 2012 21:08:39 +0000 Received: from mail109-db3 (localhost [127.0.0.1]) by mail109-db3-R.bigfish.com (Postfix) with ESMTP id 7849F4E0333 for ; Wed, 11 Jan 2012 21:08:39 +0000 (UTC) X-SpamScore: -5 X-BigFish: PS-5(z36e9nzbb2dI9371I1432N98dKzz1202hzz8275ch8275bhz2fhc1ahc1bh2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:207.46.4.139;KIP:(null);UIP:(null);IPV:NLI;H:SN2PRD0402HT008.namprd04.prod.outlook.com;RD:none;EFVD:NLI X-FB-SS: 13, Received-SPF: pass (mail109-db3: domain of explorysmedical.com designates 207.46.4.139 as permitted sender) client-ip=207.46.4.139; envelope-from=doug.meil@explorysmedical.com; helo=SN2PRD0402HT008.namprd04.prod.outlook.com ;.outlook.com ; Received: from mail109-db3 (localhost.localdomain [127.0.0.1]) by mail109-db3 (MessageSwitch) id 132631611967157_24858; Wed, 11 Jan 2012 21:08:39 +0000 (UTC) Received: from DB3EHSMHS019.bigfish.com (unknown [10.3.81.250]) by mail109-db3.bigfish.com (Postfix) with ESMTP id 0158B580051 for ; Wed, 11 Jan 2012 21:08:39 +0000 (UTC) Received: from SN2PRD0402HT008.namprd04.prod.outlook.com (207.46.4.139) by DB3EHSMHS019.bigfish.com (10.3.87.119) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 11 Jan 2012 21:08:37 +0000 Received: from SN2PRD0402MB106.namprd04.prod.outlook.com ([169.254.6.23]) by SN2PRD0402HT008.namprd04.prod.outlook.com ([10.27.90.28]) with mapi id 14.15.0029.001; Wed, 11 Jan 2012 21:08:28 +0000 From: Doug Meil To: "dev@hbase.apache.org" Subject: rowlock advice for book Thread-Topic: rowlock advice for book Thread-Index: AQHM0KUpRyNVm82ZzEC/nEQRDMe1gw== Date: Wed, 11 Jan 2012 21:08:28 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [207.54.171.98] Content-Type: text/plain; charset="us-ascii" Content-ID: <1CC5751BAB29CE489FB2789ACECB45AE@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: explorysmedical.com X-Virus-Checked: Checked by ClamAV on apache.org Hey dev-list, regarding this... re: "Be careful using hbase row locks. They are (unofficially -- we need to make it official) deprecated." ... is this the official advice? Should I update the book with this? On 1/3/12 4:37 PM, "Stack" wrote: >On Tue, Jan 3, 2012 at 12:38 PM, Joe Stein > wrote: >> when the event happened so if we see something from November 3rd today >>then >> we will only keep it for 4 more months (and for events that we see today >> those stay for 6 months) . so it sounds like this might be a viable >>option >> and when we set the timestamp in our checkAndPut we make the timestamp >>be >> the value that represents it as November 3rd, right? cool >> > >This should be fine. > >You might want to protect against future dates. > >> well what i was thinking is that my client code would know to use the >> november table and put the data in the november table (it is all just >> strings) but I am leaning now towards the TTL option (need to futz with >>it >> all more though). One issue/concern with TTL is when all of a sudden we >> want to keep things for only 4 months or maybe 8 months and then having >>to >> re-TTL trillions of rows =3D8^( (which is nagging thought in the back of >>my >> head about ttls, requirements change).... > >This schema attribute is kept at the table level, not per row. You'll >have to change the table schema which in 0.90.x hbase means offlining >table (in 0.92 hbase, there is an online schema edit but needs to be >enabled and can be problematic in the face of splitting.... more on >this later). > >> That makes sense why a narrow long schema works well then, got it (I am >>use >> to Cassandra and do lots of wide column range slices on those columns >>this >> is like inverting everything up on myself but the row locks and >>checkAndPut >> (and co-processors) hit so many of my uses cases (as Cassandra still >>does >> also) >> > >Be careful using hbase row locks. They are (unofficially -- we need >to make it official) deprecated. You can lock yourself out of a >regionserver if all incoming handlers end up waiting on a particular >row lock to clear. Check back in this mailing list for other rowlock >downsides. > >You can column range slices in hbase if you use filters (if you need to). > >checkAndPut shouldn't care if row is wide or not? > > >> right now I am on 0.90.4 but right now I am going back and forth in >> changing our hadoop cluster, HBase is the primary driver for that so I >>am >> currently wrestling on the decision with upgrading from existing cluster >> CDH2 to CDH3 or going with MapR ... > >Go to CDH3 if you are on CDH2. Does CDH2 have a working sync? >(CDH3u3 when it arrives has some nice perf improvements). > >> my preference is to run my own version >> of HBase (like I do with Kafka and Cassandra) I feel I can do this >>though I >> am not comfortable with running my own Hadoop build (already overloaded >> with things). 0.92 is exciting for co-processors too and it is cool >>system >> to hack on, maybe I will pull from trunk build and test it out some too. >> > >Don't do hbase trunk. Do tip of 0.92 branch if you want to hack. >HBase Trunk is different from 0.92 already and will get even more >"differenter"; it'll be hard to help you if you are pulling from trunk > >St.Ack >