hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Shkolnik (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (HADOOP-4756) Create a command line tool to access JMX exported properties from a NameNode server
Date Tue, 10 Mar 2009 00:02:50 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680326#action_12680326
] 

Boris Shkolnik edited comment on HADOOP-4756 at 3/9/09 5:01 PM:
----------------------------------------------------------------

Some minor nits:
# {{JMXGet.getValue()}} {{err()}} print statement can be simply changed to {{err("Info: key
= " + key + "; val = " + val);}}
bq. Done
# {{JMXGet.init()}} always returns zero. So it could be made to return {{void}}
bq. Done
# {{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?
bq. Done
# {{JMXGet.main()}} null {{value}} is not printed. Could null be a valid value that needs
to be printed?
bq. No. Null is for the case it is invalid key
# {{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.
bq. Fixed. 

Warning from FindBug is fixed too.

      was (Author: boryas):
    Some minor nits:
# {{JMXGet.getValue()}} {{err()}} print statement can be simply changed to {{err("Info: key
= " + key + "; val = " + val);}}
.bq Done
# {{JMXGet.init()}} always returns zero. So it could be made to return {{void}}
.bq Done
# {{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?
.bq Done
# {{JMXGet.main()}} null {{value}} is not printed. Could null be a valid value that needs
to be printed?
.bq No. Null is for the case it is invalid key
# {{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.
.bq Fixed. 
  
> 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-3.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.


Mime
View raw message