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 22A3711CFA for ; Tue, 2 Sep 2014 19:16:55 +0000 (UTC) Received: (qmail 73210 invoked by uid 500); 2 Sep 2014 19:16:53 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 73135 invoked by uid 500); 2 Sep 2014 19:16:53 -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 73119 invoked by uid 99); 2 Sep 2014 19:16:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 19:16:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 19:16:47 +0000 Received: by mail-vc0-f175.google.com with SMTP id lf12so7570810vcb.34 for ; Tue, 02 Sep 2014 12:16:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=IY/gPLqM01A4ZtyZipX8yQbzL3hlXTKmvEriv6g+vXw=; b=RXqpW72a2fFTeYfJaJg82t10VIUr7hawnm8DO3IBPnb8wNv3a+dBW8iKfTOcX5AzrL ABo8q5rJG/rySy/PuuKNvxUGi4sL+PeEM0CpR9cx6z1TCEoDANpuBYaVyA3NCGMo+EPA zmcX3OxxAdZP5u5n0jaq8GOHwRMLMNriyEYDBWISx0ufViKCs5hhuCYgvDcGv8t7tCd4 +EbzIJ0qgjKlbicCapZWi4+pq/2jEYushxkq9NHOw7gMqNVQntlVRxIIUO7Kh9gqANju YFl/qv/srjSuyoB5ss2Vhxyy8zbHoD4mQpnvVmx6gnWuL3EaKQU7CtR4OTxB7zNhva3I jctQ== X-Gm-Message-State: ALoCoQk4El1PGOv9ZZecMFwYiGmstnKWBhg3Rc5sX3RnCDmqhAD/ffB355ywKJELMj5W8ZUs+o+I X-Received: by 10.52.121.74 with SMTP id li10mr26130798vdb.19.1409685386743; Tue, 02 Sep 2014 12:16:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.100.227 with HTTP; Tue, 2 Sep 2014 12:16:05 -0700 (PDT) In-Reply-To: References: <1409684588.53370.YahooMailNeo@web140601.mail.bf1.yahoo.com> From: Jean-Marc Spaggiari Date: Tue, 2 Sep 2014 15:16:05 -0400 Message-ID: Subject: Re: ttl problem, cells are not deleted To: user Content-Type: multipart/alternative; boundary=089e013a1e92b8e3a9050219f4cb X-Virus-Checked: Checked by ClamAV on apache.org --089e013a1e92b8e3a9050219f4cb Content-Type: text/plain; charset=UTF-8 No. The oposite. You will need to setup MIN_VERSIONS to 0 if you don't want to keep any version if older than 2 days. 2014-09-02 15:13 GMT-04:00 Serega Sheypak : > Thanks :) So if I set MIN_VERSIONS>1, then TTL feature would completely > remove experied row? > My Idea is to automatically remove experied data. It's ok to see sometimes > expired data but not more than for +-2 days (TTL-1 second + 1 day waiting > for next major compation). > > > 2014-09-02 23:03 GMT+04:00 lars hofhansl : > > > Are these the last versions of a cell? You have MIN_VERSIONS set to 1, > > meaning HBase will keep at least one version around regardless of whether > > it is expired by TTL or not. > > > > -- Lars > > > > > > > > ________________________________ > > From: Serega Sheypak > > To: user > > Sent: Tuesday, September 2, 2014 11:40 AM > > Subject: ttl problem, cells are not deleted > > > > > > Hi, I'm trying to use HBase TTL feature > > here is table DDL: > > > > hbase(main):004:0> describe 'item_to_item_similar_rec' > > DESCRIPTION > > ENABLED > > > > {NAME => 'my_table', FAMILIES => [{NAME => 'd', DATA_BLOCK_ENCODING => > > 'NONE', BLOOMFILTER => 'ROWCOL', REPLI true > > > > CATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS > > => '1', TTL => '172800', KEEP_DELETED_CELLS => 'fal > > > > se', BLOCKSIZE => '65536', IN_MEMORY => 'true', ENCODE_ON_DISK => 'true', > > BLOCKCACHE => 'true'}]} > > > > 1 row(s) in 0.1730 seconds > > > > It has ttl set to 172800 seconds = 2 days. > > I see a cells that are much older than two days: > > > > column=d:099, timestamp=1409049061509, value=\x01\ > > current ts = 1409679511000 > > > > 1409679511000 - 1409049061509 = 630449491 > > > --089e013a1e92b8e3a9050219f4cb--