Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 119B4ECF0 for ; Fri, 7 Dec 2012 10:51:22 +0000 (UTC) Received: (qmail 75462 invoked by uid 500); 7 Dec 2012 10:51:21 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 75437 invoked by uid 500); 7 Dec 2012 10:51:21 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 75410 invoked by uid 99); 7 Dec 2012 10:51:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 10:51:20 +0000 Date: Fri, 7 Dec 2012 10:51:20 +0000 (UTC) From: "Tom Beerbower (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-1056) Expose CapacityRemaining JMX metric to NAMENODE ServiceComponentInfo 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/AMBARI-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13526305#comment-13526305 ] Tom Beerbower commented on AMBARI-1056: --------------------------------------- {code} http://localhost:8080/api/v1/clusters/c1/services/HDFS/components/NAMENODE?fields=ServiceComponentInfo {code} {code} { "href" : "http://localhost:8080/api/v1/clusters/c1/services/HDFS/components/NAMENODE?fields=ServiceComponentInfo", "ServiceComponentInfo" : { "BlocksTotal" : 73, "PercentRemaining" : 90.13458, "LiveNodes" : "{\"dev.hortonworks.com\":{\"usedSpace\":448760,\"lastContact\":0}}", "CapacityUsed" : 448760, "component_name" : "NAMENODE", "state" : "STARTED", "TotalFiles" : 80, "PercentUsed" : 8.4920553E-4, "HeapMemoryUsed" : 77588264, "NonDfsUsedSpace" : 5212899080, "service_name" : "HDFS", "HeapMemoryMax" : 1006632960, "UpgradeFinalized" : true, "MissingBlocks" : 0, "cluster_name" : "c1", "Safemode" : "", "DecomNodes" : "{}", "desired_configs" : { }, "UnderReplicatedBlocks" : 39, "CapacityTotal" : 52844687360, "StartTime" : 1354641528204, "Version" : "1.1.1.1, r", "CorruptBlocks" : 0, "DeadNodes" : "{}" } } {code} > Expose CapacityRemaining JMX metric to NAMENODE ServiceComponentInfo > --------------------------------------------------------------------- > > Key: AMBARI-1056 > URL: https://issues.apache.org/jira/browse/AMBARI-1056 > Project: Ambari > Issue Type: Sub-task > Reporter: Tom Beerbower > Assignee: Tom Beerbower > Attachments: AMBARI-1056.patch > > > Expose the following from "NameNodeInfo" JMX to ServiceComponentInfo for use in calculating Capacity: > "NonDfsUsedSpace" : 3193769983, > "PercentUsed" : 0.6558396, > "PercentRemaining" : 46.532307, -- 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