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 0F77311AB2 for ; Mon, 14 Apr 2014 21:04:42 +0000 (UTC) Received: (qmail 11629 invoked by uid 500); 14 Apr 2014 21:04:35 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 11489 invoked by uid 500); 14 Apr 2014 21:04:34 -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 11469 invoked by uid 99); 14 Apr 2014 21:04:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 21:04:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lhofhansl@yahoo.com designates 216.109.114.64 as permitted sender) Received: from [216.109.114.64] (HELO nm48.bullet.mail.bf1.yahoo.com) (216.109.114.64) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 21:04:27 +0000 Received: from [98.139.212.151] by nm48.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 21:04:04 -0000 Received: from [98.139.212.218] by tm8.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 21:04:04 -0000 Received: from [127.0.0.1] by omp1027.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 21:04:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 991729.8241.bm@omp1027.mail.bf1.yahoo.com Received: (qmail 80951 invoked by uid 60001); 14 Apr 2014 21:04:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1397509443; bh=7cfQNJv3LRh4fdA1g9XuydKYAphWYYTwydBbgqIdg08=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NHF6k+MYO7OUpUf8U66YDRSF1lbuQZ1Hr7tTJc2Y7ILR6oMJGDfCeUm+yKG6VuF1bh9Wrs/Ani2pYLsaI9V8iO5pIhqkjGouKuxGoM/2NiCuuUfolp93aON07yjJ6qURtDeBDoUM5K6jGm8kuEMM39XjoYZPzPJEV/7L/dOmDc4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=z9+aSaMiIm4+71oxCCzmGRAiTdsCc6Wcm0tvzl9nd0rHrLaX45/jcrhKMIOL/eQcIM8faSsdj9NEl0KSIfGevE8nj55mGrvrAf27N5Als0p0AiEdYj0GW1TtBc9cTYsqjbgj3mD+N1dwtWHhcJm6yBWsTPKVcCiBy8LNxHxWyPc=; X-YMail-OSG: 1RM23i0VM1nVk9XN1tqz_hG3hpJ8Ozy60tYuuXdvjHw2duj bsoZWnnrkAFl6BuSHavYyQg_1_tLVWra7Q3l200tL9fnJycuaASDngiz1fhS w9gH.RmTLPKfsGepeTvNX8Vz0Uz43Xfire7O6L6WNW8DTxY638j_jypzFScO hi5qQBri8HSPo.Aqs_d8blMJ1iba.HhKu0NRmX.TJ8YTs4_8iPQ3c2_NZ4JS jWo567hQzT63ct2YkK_hsE4udVOCUgXeUobt0oguGq99TP2nnBAHhSvIeE4J O95QKhRTpUC9T5XLxFLHeO3G5.PU4BMWTE1.LsxP06yfYtf12nSch59TlDop i20sTK9MClCrKmyIaDJP7R0Zd4w9Qmv03xC.F02kq0nYP6oP9KYPSjGlxLpA E7UgrODBBoG8hZmc4TgQ.DtW7Gw0Z3grdvAGo2kDt1Nakz9yxo1VlqKIhHJL baMOybZ63nwJK7O4k5585ObbK0qkDrvq24H7tXvSuvAnnJlwmpL1qNqhYtsJ s4Iug3UDdSXn91KE0iY6eeMu8Uvl1uxTigX13YhmFAROUHfkVx5Y.Oj7wwbP mNh0WRZOKTzUFjE.sLMiED1TWhofXIP.cjI7nrtS2oAg2cjPR_dQ0qUP1 Received: from [204.14.239.221] by web140606.mail.bf1.yahoo.com via HTTP; Mon, 14 Apr 2014 14:04:03 PDT X-Rocket-MIMEInfo: 002.001,WWVwLiBBbmQgZXZlbiBmdXJ0aGVyLCBpbWFnaW5lIGhvdyB3ZSBjb3VsZCBpbXByb3ZlIHNjYW5uaW5nLgpJZiB3ZSBvbmx5IGxvb2sgZm9yIHRoZSBsYXRlc3QgdmVyc2lvbiwgd2UgY2FuIHNjYW4gbWVtc3RvcmUvSEZpbGVzIGluIG9yZGVyIG9mIGZpbGUgYWdlLCBpZiB3ZSBmaW5kIGEgdmVyc2lvbiB3ZSdyZSBkb25lLCBubyBuZWVkIHRvIGV2ZW4gc2VlayB0aGUgb3RoZXIgSEZpbGVzLgoKLS0gTGFycwoKCi0tLS0tIE9yaWdpbmFsIE1lc3NhZ2UgLS0tLS0KRnJvbTogVmxhZGltaXIgUm9kaW9ub3YgPHYBMAEBAQE- X-RocketYMMF: lhofhansl X-Mailer: YahooMailWebService/0.8.185.657 References: <1397508389.60110.YahooMailNeo@web140602.mail.bf1.yahoo.com> Message-ID: <1397509443.64627.YahooMailNeo@web140606.mail.bf1.yahoo.com> Date: Mon, 14 Apr 2014 14:04:03 -0700 (PDT) From: lars hofhansl Reply-To: lars hofhansl Subject: Re: HBase atomic append functionality (not just client) To: "user@hbase.apache.org" , "dev@hbase.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Yep. And even further, imagine how we could improve scanning.=0AIf we only = look for the latest version, we can scan memstore/HFiles in order of file a= ge, if we find a version we're done, no need to even seek the other HFiles.= =0A=0A-- Lars=0A=0A=0A----- Original Message -----=0AFrom: Vladimir Rodiono= v =0ATo: "dev@hbase.apache.org" ; lars hofhansl =0ACc: "user@hbase.apache.org" =0ASent: Monday, April 14, 2014 1:51 PM=0ASubject: Re: HBas= e atomic append functionality (not just client)=0A=0AThanks, Lars=0AThis JI= RA is worth looking at. This hint will improve all reads: simple=0Agets, in= crements and appends.=0A=0A-Vladimir=0A=0A=0A=0AOn Mon, Apr 14, 2014 at 1:4= 6 PM, lars hofhansl wrote:=0A=0A> The jira would be this= one: HBASE-10247.=0A>=0A> If the client promises not muck with timestamps = we first look into the=0A> memstore. If we find a version there, we know it= is the right one, only=0A> otherwise do we need to check the HFiles.=0A> (= This is not possible if the client can set timestamps, because the latest= =0A> value added to the memstore might be a backdated Put, or there might b= e a=0A> futuredated Delete in some of the HFiles.)=0A>=0A> -- Lars=0A>=0A>= =0A> ----- Original Message -----=0A> From: Vladimir Rodionov =0A> To: "dev@hbase.apache.org" =0A> Cc: = "user@hbase.apache.org" =0A> Sent: Monday, April 14,= 2014 1:22 PM=0A> Subject: RE: HBase atomic append functionality (not just = client)=0A>=0A> Ted,=0A>=0A> The general idea of improving read-modify-writ= e performance is to always=0A> read data from closest and fastest store onl= y: either from MemStore or from=0A> block cache.=0A> The=A0 read pipeline i= n HBase will always read data from HFile as well to=0A> compare versions. T= his should be optimized with a read hint, for example.=0A> I remember Lars = has mentioned some related JIRA? Not sure, though.=0A>=0A> Best regards,=0A= > Vladimir Rodionov=0A> Principal Platform Engineer=0A> Carrier IQ, www.car= rieriq.com=0A> e-mail: vrodionov@carrieriq.com=0A>=0A> ____________________= ____________________=0A> From: Ted Yu [yuzhihong@gmail.com]=0A> Sent: Monda= y, April 14, 2014 12:46 PM=0A> To: dev@hbase.apache.org=0A> Cc: user@hbase.= apache.org=0A> Subject: Re: HBase atomic append functionality (not just cli= ent)=0A>=0A> There was discussion on speeding up Append operation by only d= oing Put at=0A> write time.=0A> When reading, the Puts would be consolidate= d to produce the correct result.=0A>=0A> Let me try to find the JIRA relate= d to the discussion.=0A>=0A> Cheers=0A>=0A>=0A> On Mon, Apr 14, 2014 at 10:= 41 AM, Vladimir Rodionov <=0A> vrodionov@carrieriq.com=0A> > wrote:=0A>=0A>= > From HRegion.java:=0A> >=0A> > "Appends performed are done under row loc= k but reads do not take locks=0A> out=0A> > so this can be seen partially c= omplete by gets and scans."=0A> >=0A> > Appends are partially atomic (you c= an get partial reads but you will=0A> never=0A> > get corrupted writes) and= they are implemented on the server side.=0A> >=0A> > Best regards,=0A> > V= ladimir Rodionov=0A> > Principal Platform Engineer=0A> > Carrier IQ, www.ca= rrieriq.com=0A> > e-mail: vrodionov@carrieriq.com=0A> >=0A> > _____________= ___________________________=0A> > From: GSK Chaitanya [gskchaitanya12@gmail= .com]=0A> > Sent: Monday, April 14, 2014 10:05 AM=0A> > To: user@hbase.apac= he.org; dev@hbase.apache.org=0A> > Subject: HBase atomic append functionali= ty (not just client)=0A> >=0A> > Mighty Hbase users and developers,=0A> >= =0A> > I have few questions and I'd really appreciate it if someone can cla= rify=0A> > them.=0A> >=0A> > 1) I want to know if Hbase inherently supports= *atomic=0A> > append*functionality like=0A> > *get* and *put*. For my work= , I would be using OpenTSDB which is a layer=0A> on=0A> > top of AsynchHBas= e and AsynchHBase doesnt work with HBase client (which=0A> > supports *atom= ic append*).=0A> >=0A> > 2) If I understand correctly, atomic append of HBa= se client internally=0A> does=0A> > a get and put instead of actually appen= ding to the end of the cell. If=0A> > that's the case, I wonder how does th= is functionality is of much use in=0A> > terms of performance. In our case,= we would like a very light weight=0A> append=0A> > functionality. I'd like= to know if there are any plans of adding this=0A> > feature to HBase main = in the near future.=0A> >=0A> > Thanks,=0A> > Chaitanya=0A> >=0A> > Confide= ntiality Notice:=A0 The information contained in this message,=0A> > includ= ing any attachments hereto, may be confidential and is intended to=0A> be= =0A> > read only by the individual or entity to whom this message is addres= sed.=0A> If=0A> > the reader of this message is not the intended recipient = or an agent or=0A> > designee of the intended recipient, please note that a= ny review, use,=0A> > disclosure or distribution of this message or its att= achments, in any=0A> form,=0A> > is strictly prohibited.=A0 If you have rec= eived this message in error,=0A> please=0A> > immediately notify the sender= and/or Notifications@carrieriq.com and=0A> > delete or destroy any copy of= this message and its attachments.=0A>=0A> >=0A>=0A> Confidentiality Notice= :=A0 The information contained in this message,=0A> including any attachmen= ts hereto, may be confidential and is intended to be=0A> read only by the i= ndividual or entity to whom this message is addressed. If=0A> the reader of= this message is not the intended recipient or an agent or=0A> designee of = the intended recipient, please note that any review, use,=0A> disclosure or= distribution of this message or its attachments, in any form,=0A> is stric= tly prohibited.=A0 If you have received this message in error, please=0A> i= mmediately notify the sender and/or Notifications@carrieriq.com and=0A> del= ete or destroy any copy of this message and its attachments.=0A>=0A