Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 4674 invoked from network); 9 Mar 2009 22:30:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 22:30:14 -0000 Received: (qmail 72727 invoked by uid 500); 9 Mar 2009 22:30:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 72701 invoked by uid 500); 9 Mar 2009 22:30:11 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 72690 invoked by uid 99); 9 Mar 2009 22:30:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 15:30:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 22:30:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 81B15234C003 for ; Mon, 9 Mar 2009 15:29:50 -0700 (PDT) Message-ID: <1957630717.1236637790516.JavaMail.jira@brutus> Date: Mon, 9 Mar 2009 15:29:50 -0700 (PDT) From: "Suresh Srinivas (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4756) Create a command line tool to access JMX exported properties from a NameNode server In-Reply-To: <1859589464.1228263284269.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680309#action_12680309 ] Suresh Srinivas commented on HADOOP-4756: ----------------------------------------- Some minor nits: # {{JMXGet.getValue()}} {{err()}} print statement can be simply changed to {{err("Info: key = " + key + "; val = " + val);}} # {{JMXGet.init()}} always returns zero. So it could be made to return {{void}} # {{JMXGet.parseArgs()}} it may be a good idea to use static methods invoked with class name so that code looks clean on eclipse. Typo {{invalide}} in exception. Not sure if not catching the {{IllegalArgumentException}} from {{parseArgs()}} in {{main()}} is intentional. Does this return -1 from the script? # {{JMXGet.main()}} null {{value}} is not printed. Could null be a valid value that needs to be printed? # {{TestJMXGet.java}} does not compile because of the last line. Also it might be a good idea to include tests for running the command with server:port and localVM option. > Create a command line tool to access JMX exported properties from a NameNode server > ----------------------------------------------------------------------------------- > > Key: HADOOP-4756 > URL: https://issues.apache.org/jira/browse/HADOOP-4756 > Project: Hadoop Core > Issue Type: New Feature > Components: dfs > Reporter: Boris Shkolnik > Assignee: Boris Shkolnik > Attachments: HADOOP-4756-1.patch, HADOOP-4756-2.patch, HADOOP-4756.patch, HADOOP-4756.patch, HADOOP-4756.patch > > > Create a command line tool that will easy script access to JMX exported properties of the NameNode. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.