Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4671110200 for ; Sun, 18 Aug 2013 18:26:51 +0000 (UTC) Received: (qmail 96103 invoked by uid 500); 18 Aug 2013 18:26:49 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 96057 invoked by uid 500); 18 Aug 2013 18:26:48 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 96044 invoked by uid 99); 18 Aug 2013 18:26:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 18:26:48 +0000 Date: Sun, 18 Aug 2013 18:26:48 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9243) Add more useful statistics in the HFile tool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-9243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743321#comment-13743321 ] Andrew Purtell commented on HBASE-9243: --------------------------------------- Committed to trunk and 0.95 branch. Will wait a few hours if nack on 0.94 before committing there too. > Add more useful statistics in the HFile tool > -------------------------------------------- > > Key: HBASE-9243 > URL: https://issues.apache.org/jira/browse/HBASE-9243 > Project: HBase > Issue Type: Improvement > Components: HFile > Affects Versions: 0.96.0 > Reporter: Alexandre Normand > Priority: Minor > Labels: newbie > Attachments: HBASE-9243-1.patch, HBASE-9243-2.patch, HBASE-9243.patch > > > The [HFile tool|http://hbase.apache.org/book/regions.arch.html#hfile_tool] has been very useful to us recently to get a better idea of the size of our rows. However, it happened frequently that we wished for more statistics to have a more complete picture of the distribution of the row sizes. > [~skuehn] requested that feature often enough in private that I decided to give it a go. > Here's the patch that adds more nice little stats via yammer's histograms. It was easy enough since {{com.yammer.metrics}} is already in hbase's dependencies. > Example of the new output from {{org.apache.hadoop.hbase.io.hfile.HFile -s -f ...}}: > {code} > Stats: > Key length: > min = 24.00 > max = 24.00 > mean = 24.00 > stddev = 0.00 > median = 24.00 > 75% <= 24.00 > 95% <= 24.00 > 98% <= 24.00 > 99% <= 24.00 > 99.9% <= 24.00 > Row size (bytes): > min = 33.00 > max = 33.00 > mean = 33.00 > stddev = 0.00 > median = 33.00 > 75% <= 33.00 > 95% <= 33.00 > 98% <= 33.00 > 99% <= 33.00 > 99.9% <= 33.00 > Row size (columns): > min = 1.00 > max = 1.00 > mean = 1.00 > stddev = 0.00 > median = 1.00 > 75% <= 1.00 > 95% <= 1.00 > 98% <= 1.00 > 99% <= 1.00 > 99.9% <= 1.00 > Val length: > min = 1.00 > max = 1.00 > mean = 1.00 > stddev = 0.00 > median = 1.00 > 75% <= 1.00 > 95% <= 1.00 > 98% <= 1.00 > 99% <= 1.00 > 99.9% <= 1.00 > Key of biggest row: \x00 > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira