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 6C721921C for ; Mon, 7 May 2012 17:44:51 +0000 (UTC) Received: (qmail 31244 invoked by uid 500); 7 May 2012 17:44:49 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 31206 invoked by uid 500); 7 May 2012 17:44:49 -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 31198 invoked by uid 99); 7 May 2012 17:44:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 17:44:49 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bbeaudreault@hubspot.com designates 74.125.149.199 as permitted sender) Received: from [74.125.149.199] (HELO na3sys009aog108.obsmtp.com) (74.125.149.199) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 07 May 2012 17:44:44 +0000 Received: from mail-yw0-f47.google.com ([209.85.213.47]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKT6gJ96a2ZhxQrh1L6d7SsuefDuJcgrK8@postini.com; Mon, 07 May 2012 10:44:23 PDT Received: by yhjj56 with SMTP id j56so4579839yhj.6 for ; Mon, 07 May 2012 10:44:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=GFwFxPT/Stpk6fDhCpn2P4p72ZFHkwVBQOmUL+VvgL8=; b=WAYYUws9ktj4V3aJ1sbWLCS46xMIJXc/s6uiWvl8ic69qnBajmj62BIzBHaedrYFtC Ik1tbkXC5Gvvafmkg3tO/bpYguy12gNq1Gl12MTJKY+xU/SjHMVm7id2tYAUuvd11uf+ 02rHf0ofTv08ZZgUmj86FV3QTfVl314hGW0Tux6YKEOo2KvhI29bW9RmBka78UH67x7W fbsG5Ym7sIoX0sZzvCEO2dywJ9Al+6Qp/fBeJzY3CQPSQeF5D4mbYRhWOYVQkt/kYxv4 0fHWjcIswGX3VpAXZhOeIoDAfcHbmuY6h+hpl3zTYxGvigzv/dcf43PjLFcgtWC0Qf7W lYyA== Received: by 10.42.141.131 with SMTP id o3mr8056196icu.1.1336412662400; Mon, 07 May 2012 10:44:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.132.132 with HTTP; Mon, 7 May 2012 10:44:02 -0700 (PDT) In-Reply-To: References: <1336358505.74752.YahooMailNeo@web130102.mail.mud.yahoo.com> From: Bryan Beaudreault Date: Mon, 7 May 2012 13:44:02 -0400 Message-ID: Subject: Re: HBase HDFS disk space usage To: user@hbase.apache.org Cc: Otis Gospodnetic Content-Type: multipart/alternative; boundary=90e6ba6e833c04069504bf75d250 X-Gm-Message-State: ALoCoQmXPhS92d9G+E2cZDFVFNwz/rhwyzKjONkBF6NChUXHV3InKI19WOf5P1AWaOePx7V1D0k1 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e833c04069504bf75d250 Content-Type: text/plain; charset=ISO-8859-1 We created our own MetricContext for reading these metrics. Basically your metric context gets called every X seconds based on your hadoop-metrics.properties, so you can add whatever else you want in there. We also were concerned with HDFS usage, and while we couldn't get it to pull that in specifically we did use the java File API to just get the current used disk space for our various mounted drives. This has worked reasonably well, though does not mirror HDFS usage exactly. This is per-server though as opposed to per-table or whatever. You can take a look at the GangliaContext for an example, in fact our MetricContext extends GangliaContext so we can still report to ganglia but also report to our own status system as well. Just put it in a jar, put the jar on the classpath, and reference it in your hadoop-metrics.properties. On Mon, May 7, 2012 at 9:37 AM, Doug Meil wrote: > > You're right, it's not currently a metric. > > But there is an entry for the disk usage here... > > http://hbase.apache.org/book.html#trouble.namenode > > > > > > On 5/6/12 10:41 PM, "Otis Gospodnetic" wrote: > > >Hello, > > > >Does HBase know how much space it is occupying on HDFS? > >I looked at these two: > > > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/regionserver/metri > >cs/RegionServerMetrics.html > > > >http://hbase.apache.org/book/hbase_metrics.html > > > > > >But I couldn't find any mentions of such a metric. > > > >Is this just a matter of exposing this metric? Or...? > > > >Thanks, > >Otis > >---- > >Performance Monitoring for Solr / ElasticSearch / HBase - > >http://sematext.com/spm > > > > > > > --90e6ba6e833c04069504bf75d250--