Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F52510F1E for ; Fri, 28 Mar 2014 10:41:18 +0000 (UTC) Received: (qmail 78322 invoked by uid 500); 28 Mar 2014 10:41:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 77980 invoked by uid 500); 28 Mar 2014 10:41:16 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 77968 invoked by uid 99); 28 Mar 2014 10:41:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2014 10:41:15 +0000 Date: Fri, 28 Mar 2014 10:41:14 +0000 (UTC) From: "sathish (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6174) In Fsck command with zero arguments generic command usage is printing twice 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/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)