Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0C41F200C3F for ; Wed, 22 Mar 2017 22:39:42 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0ADC9160B86; Wed, 22 Mar 2017 21:39:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2D625160B74 for ; Wed, 22 Mar 2017 22:39:41 +0100 (CET) Received: (qmail 88957 invoked by uid 500); 22 Mar 2017 21:39:39 -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 88940 invoked by uid 99); 22 Mar 2017 21:39:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2017 21:39:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1E07AC69D0 for ; Wed, 22 Mar 2017 21:39:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.878 X-Spam-Level: * X-Spam-Status: No, score=1.878 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id M-LC9DSlQ7Xm for ; Wed, 22 Mar 2017 21:39:37 +0000 (UTC) Received: from SNT004-OMC1S13.hotmail.com (snt004-omc1s13.hotmail.com [65.55.90.24]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8A4075F2F1 for ; Wed, 22 Mar 2017 21:39:37 +0000 (UTC) Received: from NAM04-SN1-obe.outbound.protection.outlook.com ([65.55.90.8]) by SNT004-OMC1S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 22 Mar 2017 14:39:11 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UApSl+vx62gLMRbhiSYbZAa538GNu57JccagprTjSNk=; b=owybCYoAnRfdCGKqK9CjeG07+1Iz9nyB4cFLxZtoRM61qVUv3/hKqwI6bxckjI3pODSqtfZHUnLitQrKmxyQVUbBc5KyZWawOak/OmRWbRhfb09IaWd/ZDxqHVme5wPkHFoWGXqMM2Lp4Htt0kF3/qx+F0EU11oYeuv7hdKLKjN1psnk1527e+wEcVpytSP0XjSwJm0lFasZoAcktQAdVcIaDeKikTU5XpgQshAC1vw4+QHE53KlTkzyNSQ4aBJ4fWXrWBa0VglvswswQLNuAdU2GiQVnA2VlL8UySDIvTdR6shFlcbuKddvN7WXRHW3pANJbLR1154C5KILIz7tfw== Received: from SN1NAM04FT056.eop-NAM04.prod.protection.outlook.com (10.152.88.52) by SN1NAM04HT147.eop-NAM04.prod.protection.outlook.com (10.152.89.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.7; Wed, 22 Mar 2017 21:39:10 +0000 Received: from MWHPR14MB1293.namprd14.prod.outlook.com (10.152.88.59) by SN1NAM04FT056.mail.protection.outlook.com (10.152.89.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.7 via Frontend Transport; Wed, 22 Mar 2017 21:39:10 +0000 Received: from MWHPR14MB1293.namprd14.prod.outlook.com ([10.173.102.19]) by MWHPR14MB1293.namprd14.prod.outlook.com ([10.173.102.19]) with mapi id 15.01.0991.013; Wed, 22 Mar 2017 21:39:09 +0000 From: jeff saremi To: "user@hbase.apache.org" Subject: Re: Need guidance on Custom Compaction Policy Thread-Topic: Need guidance on Custom Compaction Policy Thread-Index: AQHSo0I3C/cTGN1ngEWHC9LnJOowm6GhW18AgAAG3Jk= Date: Wed, 22 Mar 2017 21:39:09 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hbase.apache.org; dkim=none (message not signed) header.d=none;hbase.apache.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:64A46B34B1ED8D7C4E61BAB8C08AE2A0830363A2F5B8ECA83A5456355338A067;UpperCasedChecksum:05977E6EDA3F4BBB46D934B9AA4CC12FD3ABCD35506DEAAC3781FE9F7AC5C694;SizeAsReceived:8191;Count:42 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [pYeRyweZS7/zVKi0behZyrs/9H/gB1Pe] x-microsoft-exchange-diagnostics: 1;SN1NAM04HT147;5:VijoyBXC/CJfMW1FbUZffWxulolYAintlZHL2Ik8YJPU81FRkl9aKgq34jgOBUhQHwoF3EmowX/aHLgCmNuHSmtE0SxX3p9Y6jrSe6hFnz4D/sGfuOBiBqGhNLQOjYGqMmjEOeNU1rUD0xcePdEtvA==;24:W170Ts8f4XUrY78/6d9KgStNiXimh3ekDZuyhyyh4v10tLpgXYyu769qp7Twe4P9TGUBRWFgocGNRWxAFr5kymrDW7dgevL/1XGUH+BqXQk=;7:60AeRFFEpBDhhcEikvEiJbgMmtc03lMY8N3SmCwfeV+/Eqw+FuzuyYfNClgVG5iCRscTLeopvdpIDNcxjEUq94pZjjS1NXzqW/jveLxVhWC1PZZwjv/ZcvV4dgXy1m3sLFJx/EosQ5p/5jVXi1jH7Q0SsA4oj5TeizJCACCK8VRDXlVx9765tZpEtvitI3yD8Cs9Elo8i/Cy5DUuwjasH5e5mq+Y4zdksWZLnBJQCh005LL6+mrcGN4CjVsP5Nila85TuTAbMf6qLOQNEXTP7fAtROvY2gQrTwEzjxl+XfJcxyXLWyj53GZOyeKleTzP x-incomingheadercount: 42 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900017);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1NAM04HT147;H:MWHPR14MB1293.namprd14.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: eb8be46a-3fe7-4c5e-b26a-08d4716be000 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125374)(1701031045);SRVR:SN1NAM04HT147; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015281)(444000031);SRVR:SN1NAM04HT147;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM04HT147; x-forefront-prvs: 02543CD7CD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_MWHPR14MB12935DCB23B7D9C3851FDCEEC13C0MWHPR14MB1293namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2017 21:39:09.8032 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT147 X-OriginalArrivalTime: 22 Mar 2017 21:39:11.0012 (UTC) FILETIME=[BE293E40:01D2A354] archived-at: Wed, 22 Mar 2017 21:39:42 -0000 --_000_MWHPR14MB12935DCB23B7D9C3851FDCEEC13C0MWHPR14MB1293namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable @Ted No i had not looked at DateTiered. I will. Thanks @Vladimir I will look at the example code you gave me. thanks ________________________________ From: Ted Yu Sent: Wednesday, March 22, 2017 2:12:00 PM To: user@hbase.apache.org Subject: Re: Need guidance on Custom Compaction Policy Have you taken look at http://hbase.apache.org/book.html#ops.date.tiered ? Cheers On Wed, Mar 22, 2017 at 12:29 PM, jeff saremi wrote: > I mentioned some of this in another thread. We have a readonly database > which get bulk loaded using HFiles. > We want to keep only two versions/generations of data. Since the size of > data is massive we need to delete the older generation. > > Since we write one single HBase for each region for each CF for each > generation, could we just yank the older files using a separate standalon= e > process? (sounds a little scary) > > If not, could we write a custom compactor? what's involved (some pointers > please)? thanks > > Jeff > --_000_MWHPR14MB12935DCB23B7D9C3851FDCEEC13C0MWHPR14MB1293namp_--