Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AFC5F200B62 for ; Fri, 12 Aug 2016 15:30:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AE69A160A85; Fri, 12 Aug 2016 13:30:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0247E160AB6 for ; Fri, 12 Aug 2016 15:30:21 +0200 (CEST) Received: (qmail 18717 invoked by uid 500); 12 Aug 2016 13:30:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 18617 invoked by uid 99); 12 Aug 2016 13:30:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2016 13:30:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CE4AF2C02AC for ; Fri, 12 Aug 2016 13:30:20 +0000 (UTC) Date: Fri, 12 Aug 2016 13:30:20 +0000 (UTC) From: "Wei-Chiu Chuang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10747) o.a.h.hdfs.tools.DebugAdmin usage message is misleading MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 12 Aug 2016 13:30:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15418830#comment-15418830 ] Wei-Chiu Chuang commented on HDFS-10747: ---------------------------------------- Yes the usage is misleading. Thanks [~liuml07] for bringing this up. I think the patch looks good to me. > o.a.h.hdfs.tools.DebugAdmin usage message is misleading > ------------------------------------------------------- > > Key: HDFS-10747 > URL: https://issues.apache.org/jira/browse/HDFS-10747 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Affects Versions: 2.7.0 > Reporter: Mingliang Liu > Assignee: Mingliang Liu > Priority: Minor > Attachments: HDFS-10747.000.patch > > > [HDFS-6917] added a helpful hdfs debug command to validate blocks and call recoverlease. The usage doc is kinda misleading, as following: > {code} > $ hdfs debug verify > creating a new configuration > verify [-meta ] [-block ] > Verify HDFS metadata and block files. If a block file is specified, we > will verify that the checksums in the metadata file match the block > file. > {code} > Actually the {{-meta }} is necessary. {{[]}} is for optional arguments, if we follow the [convention|http://pubs.opengroup.org/onlinepubs/9699919799]. > {code} > $ hdfs debug recoverLease > creating a new configuration > recoverLease [-path ] [-retries ] > Recover the lease on the specified path. The path must reside on an > HDFS filesystem. The default number of retries is 1. > {code} > {{-path }} is also the same case. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org