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 1DBE11866A for ; Fri, 14 Aug 2015 14:29:42 +0000 (UTC) Received: (qmail 94936 invoked by uid 500); 14 Aug 2015 14:29:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 94866 invoked by uid 500); 14 Aug 2015 14:29: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 94849 invoked by uid 99); 14 Aug 2015 14:29:39 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 14:29:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 06A99187DAA for ; Fri, 14 Aug 2015 14:29:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 20tlZYj9d6wa for ; Fri, 14 Aug 2015 14:29:32 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 50B2042B3C for ; Fri, 14 Aug 2015 14:29:32 +0000 (UTC) Received: by iodt126 with SMTP id t126so86610572iod.2 for ; Fri, 14 Aug 2015 07:29:26 -0700 (PDT) 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=+06R/UPRnjudO2Mtzp4q3dtUvLpM7yKCMUvgsz8P9jc=; b=s0lG+MehlSvq2YiiClFW14VU4D/m7AgnCXhRTWQCYf9eJYFlfZziFsjdd9x+yAnh8V b/JQ0tFtubbyAHZ1DJOfvVvds1uod5yC0bj0/QKsdyiClcNbqw9iwxMEVohiPSEF2Hhe HbFKRu/x1yhPGRD7oks5bCXWO+lhSuRADZGYZzza0Hti/qgiZKUuVSVMe+SIDiDljqja CPLQQgxj1Vs5UNqV+lEObkNMVQeI0ImRkVLmTNYFvQTciLRajAsdLkPi2hL/NzxsP+n/ aToTvorWxDFArXfsPyMFh1wiCQ7nTbzIdtMj56Q/z2ScNdG81k4EbvDtoEo1cL4F4KmW L1cw== MIME-Version: 1.0 X-Received: by 10.107.9.156 with SMTP id 28mr3949448ioj.173.1439562566290; Fri, 14 Aug 2015 07:29:26 -0700 (PDT) Received: by 10.79.93.69 with HTTP; Fri, 14 Aug 2015 07:29:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Aug 2015 22:29:26 +0800 Message-ID: Subject: Re: How to get the creation time of a HTable? From: ShaoFeng Shi To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a113ec2f26553c2051d4647c2 --001a113ec2f26553c2051d4647c2 Content-Type: text/plain; charset=UTF-8 We have method to identify which tables will not receive read/write requests; But to be safe, we will exclude the tables that newly created (as they might be under creating), say in latest 2 days; If Hbase doesn't have such metadata, it's okay that we add that during the table creation; But if it can be implemented in the future HBase release, that is good for the users (especially the admins) I think; Thanks for the answers and comments! 2015-08-14 20:51 GMT+08:00 Ted Yu : > After predetermined number of days, would your table(s) not receive any > read / write requests ? > > Have you considered using TTL for cleaning old data ? > > Cheers > > > > On Aug 14, 2015, at 2:54 AM, ShaoFeng Shi wrote: > > > > Hello the community, > > > > In my case, I want to cleanup the HTables that older than certain days; > so > > we need to get the table's creation time, is there any API to get this? > If > > not, I may have to add such an attribute when creating the table; > > > > Thanks for any suggestion; > > > > Shaofeng Shi, > > Apache Kylin > --001a113ec2f26553c2051d4647c2--