hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-13697) LogLevel#main throws exception if no arguments provided
Date Tue, 11 Oct 2016 18:27:20 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-13697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mingliang Liu updated HADOOP-13697:
-----------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 3.0.0-alpha2
                   2.9.0
           Status: Resolved  (was: Patch Available)

Committed to {{trunk}} and {{branch-2}}. Thanks for your review, [~jojochuang].

> LogLevel#main throws exception if no arguments provided
> -------------------------------------------------------
>
>                 Key: HADOOP-13697
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13697
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>             Fix For: 2.9.0, 3.0.0-alpha2
>
>         Attachments: HADOOP-13697.000.patch, HADOOP-13697.001.patch
>
>
> {code}
> root@b9ab37566005:/# hadoop daemonlog
> Usage: General options are:
> 	[-getlevel <host:port> <classname> [-protocol (http|https)]
> 	[-setlevel <host:port> <classname> <level> [-protocol (http|https)]
> Exception in thread "main" org.apache.hadoop.HadoopIllegalArgumentException: No arguments
specified
> 	at org.apache.hadoop.log.LogLevel$CLI.parseArguments(LogLevel.java:138)
> 	at org.apache.hadoop.log.LogLevel$CLI.run(LogLevel.java:106)
> 	at org.apache.hadoop.log.LogLevel.main(LogLevel.java:70)
> {code}
> I think we can catch the exception in the main method, and dump a log error message instead
of throw the stack which may frustrate users.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message