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 606A71009B for ; Thu, 6 Mar 2014 18:54:34 +0000 (UTC) Received: (qmail 70203 invoked by uid 500); 6 Mar 2014 18:54:30 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 70143 invoked by uid 500); 6 Mar 2014 18:54:30 -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 70135 invoked by uid 99); 6 Mar 2014 18:54:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 18:54:28 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yh0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 18:54:22 +0000 Received: by mail-yh0-f50.google.com with SMTP id t59so3138481yho.9 for ; Thu, 06 Mar 2014 10:54:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ct5BB5P2ow74nBmJELKu9MPqS2U1pUKLmCnhbmdXnOQ=; b=F8EBiYERuZp3y06YQ8/lEPvl5NmvT7s3j1BgEI6PjgZVsuZn/BlLHRCXG4XLTowGSU CGa6q/BwvQaK+kwc9uBSnXSTfnTnkD2YJzHM/wBhMgUmCPo+6vgZ/Kj049DDR2cf9+2W CCEsGcCje1DtbhmS7DSkgfunZEOvdViIkl4rhkG6lJpHjQfjjxGsHOTBHOJmp/sAOtDJ 8NHmM+W2Xyx1VaaifF4XYZvjU+XWsDCdJ22SN1W4iAGRQIpZUX7gsoXfxDOnIOnz9MbV 2iCahqApn9GfnZHfk71GDd9Gj+hqYlcJh3H3pk1btMdlMPxFSMBqPAy7+GRFvAhVRXNo v6sw== MIME-Version: 1.0 X-Received: by 10.236.126.162 with SMTP id b22mr16582335yhi.72.1394132041855; Thu, 06 Mar 2014 10:54:01 -0800 (PST) Received: by 10.170.79.86 with HTTP; Thu, 6 Mar 2014 10:54:01 -0800 (PST) In-Reply-To: <1394131475.73607.YahooMailNeo@web140606.mail.bf1.yahoo.com> References: <1394131475.73607.YahooMailNeo@web140606.mail.bf1.yahoo.com> Date: Thu, 6 Mar 2014 10:54:01 -0800 Message-ID: Subject: Re: turn off size-based Major Compaction? From: Ted Yu To: "user@hbase.apache.org" , lars hofhansl Content-Type: multipart/alternative; boundary=20cf301af60520140e04f3f4a921 X-Virus-Checked: Checked by ClamAV on apache.org --20cf301af60520140e04f3f4a921 Content-Type: text/plain; charset=ISO-8859-1 Demai: You can find description of compaction-related parameters in: http://hbase.apache.org/book.html#compaction Cheers On Thu, Mar 6, 2014 at 10:44 AM, lars hofhansl wrote: > The problem is not major compactions, but compactions that compact a lot > of files. > > > HBase will always compact in the background (minor compactions). > If a minor compaction needs to compact all files anyway it is promoted to > a major compaction. > There is no performance penalty to that, just that if all files are > compacted anyway might as well get rid of the delete markers in the process. > > > So rather than avoiding major compactions, what you want to avoid are > compactions that touch a lot of (or all) files. You'd need to tweak the > compaction setting - which is an art in itself. You could lower the > compaction ratio, or increase the number of store files before compations > start, pick a different compaction strategy, etc. > > > -- Lars > > > > ________________________________ > From: Demai Ni > To: "user@hbase.apache.org" > Sent: Thursday, March 6, 2014 10:28 AM > Subject: turn off size-based Major Compaction? > > > hi, folks, > > Is there a way to turn off Major Compaction, for sure? > > We are using 96.0, and set hbase.hregion.majorcompaction is 0. The > intention was to only run major compaction manually. It turns out after > heavy load, major compaction still occur as shown in WebUI. > > After a bit search, I read this discussion: > > http://apache-hbase.679495.n3.nabble.com/Major-Compaction-Concerns-td3642142.html > , > which indicated that there are three way to trigger major compaction: > 1) user issued, (that is manually, such in hbase shell) > 2) timed, (that is hbase.hregion.majorcompaction) > 3) size-based. > > Is there a way to prevent or configure the 3) method? I found > hbase.hstore.compaction.max, > but it is for minor compaction. > > So the question is: what configuration for the *size-based* on > *Major*compaction? > > Many thanks > > Demai --20cf301af60520140e04f3f4a921--