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 8843CC07A for ; Thu, 9 Aug 2012 09:03:45 +0000 (UTC) Received: (qmail 82953 invoked by uid 500); 9 Aug 2012 09:03:44 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 82294 invoked by uid 500); 9 Aug 2012 09:03: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 82259 invoked by uid 99); 9 Aug 2012 09:03:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 09:03:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jmozah@gmail.com designates 209.85.160.169 as permitted sender) Received: from [209.85.160.169] (HELO mail-gh0-f169.google.com) (209.85.160.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 09:03:30 +0000 Received: by ghrr18 with SMTP id r18so249740ghr.14 for ; Thu, 09 Aug 2012 02:03:09 -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=ea/DqCv/nXHhwKzIEMvebl57bWIer33rEHaz37Pkpb8=; b=McagWjeNrLCfBVeQsluPUYOLJSzr7bVxA/MDsMumphvMClNreqpSTcRnh8h0Q4/IQu IBmt+lEW+cs4z8ZxNkulVX/BEKMpGLpdbu4kjzVv6QM9S/hqtnDi4WnN81XJjDnOwL6q +FJ2N+VkWsoH3r0lIKda1Q0mEkIDR8+RSS01bqntVi27iDnvyiI2pPz0yeuCKyU4ux5c U/h5Ep526rPyv4aPwbW0WBvuLcE9/1qYu6bw23ivc0MdGkDVMVTREKc6fALfYH4xIY8E 1zbitOtz95T21/NdxIz1zJKHW/52w/KFjWIrB6KuQViKX1P9AOUXIZgjDlJ66QUmMLRT G3Hg== MIME-Version: 1.0 Received: by 10.50.106.136 with SMTP id gu8mr322338igb.23.1344502988891; Thu, 09 Aug 2012 02:03:08 -0700 (PDT) Received: by 10.231.47.65 with HTTP; Thu, 9 Aug 2012 02:03:08 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Aug 2012 14:33:08 +0530 Message-ID: Subject: Re: Hbase- Hadoop DFS size not decreased even after deleting a column family From: J Mohamed Zahoor To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=e89a8f23579d0d679804c6d17f8e --e89a8f23579d0d679804c6d17f8e Content-Type: text/plain; charset=ISO-8859-1 Hi I see this atleast in trunk... in TableDeleteFamilyHandler's constructor.. public TableDeleteFamilyHandler(byte[] tableName, byte [] familyName, Server server, final MasterServices masterServices) throwsIOException { super(EventType.C_M_ADD_FAMILY, tableName, server, masterServices); HTableDescriptor htd = getTableDescriptor(); this.familyName = hasColumnFamily(htd, familyName); } The event type is added as C_M_ADD_FAMILY.... May be this is the problem and it is there in 0.94.1 also !!! ./zahoor On Wed, Aug 8, 2012 at 5:33 PM, prem yadav wrote: > Hi Stack, > we have got a lot of these in the logs after we deleted the column family. > > org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException: Column > family ol does not exist in region > at > org.apache.hadoop.hbase.regionserver.HRegion.checkFamily(HRegion.java:4759) > at > > org.apache.hadoop.hbase.regionserver.HRegion.checkFamilies(HRegion.java:2639) > at > > org.apache.hadoop.hbase.regionserver.HRegion.doMiniBatchMutation(HRegion.java:2065) > at > org.apache.hadoop.hbase.regionserver.HRegion.batchMutate(HRegion.java:1962) > at > > org.apache.hadoop.hbase.regionserver.HRegionServer.multi(HRegionServer.java:3428) > at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > > org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364) > at > org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1386) > 2012-08-05 00:11:37,697 DEBUG org.apache.hadoop.hbase.regionserver.HRegion: > rollbackMemstore rolled back 0 keyvalues from start:0 to end:1 > > > > > On Tue, Aug 7, 2012 at 10:27 PM, Ted Yu wrote: > > > Looking at TableDeleteFamilyHandler, I see: > > > > protected void handleTableOperation(List hris) throws > > IOException { > > // Update table descriptor in HDFS > > HTableDescriptor htd = > > this.masterServices.getMasterFileSystem().deleteColumn(tableName, > > familyName); > > // Update in-memory descriptor cache > > this.masterServices.getTableDescriptors().add(htd); > > > > MasterFileSystem.deleteColumn() calls: > > > > HTableDescriptor htd = > > this.services.getTableDescriptors().get(tableName); > > htd.removeFamily(familyName); > > > > I will dig some more. > > > > But looks like there is a bug. > > > > On Tue, Aug 7, 2012 at 9:21 AM, Stack wrote: > > > > > On Tue, Aug 7, 2012 at 9:59 AM, prem yadav > wrote: > > > > Hi Stack, > > > > yes . I can still see the column family. > > > > > > > > we ran the following command too: > > > > > > > > fs -dus /hbase/// and > it > > > > returned a large value which means that the space has not been > > reclaimed. > > > > The hbase version we are running is 0.94.1. > > > > > > > > is there a manual way to force reclaim the space? > > > > > > > > > > You could delete the column family from hdfs under each region. > > > Anything in the logs around the remove of the column family? Maybe we > > > just don't do the delete cleanup in hdfs when we drop a cf (I've not > > > checked)? > > > > > > St.Ack > > > > > > --e89a8f23579d0d679804c6d17f8e--