hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sathish (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6174) In Fsck command with zero arguments generic command usage is printing twice
Date Fri, 28 Mar 2014 10:41:14 GMT

    [ https://issues.apache.org/jira/browse/HDFS-6174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950568#comment-13950568
] 

sathish commented on HDFS-6174:
-------------------------------

Actually this is happening due to the following code snippet.
{code}
    if ((args.length == 0) || ("-files".equals(args[0]))) {
      printUsage(System.err);
    ToolRunner.printGenericCommandUsage(System.err);
    }
{code}
Here actually in printUsage() method itself they are printing the generic command usage informtion,here
they added one more step for printing the usage.so it is printing twice

> In Fsck command with zero arguments generic command usage is printing twice
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-6174
>                 URL: https://issues.apache.org/jira/browse/HDFS-6174
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.3.0
>            Reporter: sathish
>            Assignee: sathish
>            Priority: Minor
>
> While executing Fsck command if we pass zero arguments generic command usage is printing
twice.
> if we execute the command like this ./hdfs fsck we are getting the generic command usage
twice



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message