Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDC9410403 for ; Mon, 14 Oct 2013 23:36:47 +0000 (UTC) Received: (qmail 83983 invoked by uid 500); 14 Oct 2013 23:36:45 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 83895 invoked by uid 500); 14 Oct 2013 23:36:45 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 83886 invoked by uid 99); 14 Oct 2013 23:36:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 23:36:45 +0000 Date: Mon, 14 Oct 2013 23:36:45 +0000 (UTC) From: "Shinichi Yamashita (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-5360) Improvement of usage message of renameSnapshot and deleteSnapshot MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Shinichi Yamashita created HDFS-5360: ---------------------------------------- Summary: Improvement of usage message of renameSnapshot and deleteSnapshot Key: HDFS-5360 URL: https://issues.apache.org/jira/browse/HDFS-5360 Project: Hadoop HDFS Issue Type: Improvement Components: snapshots Affects Versions: 3.0.0 Reporter: Shinichi Yamashita Priority: Minor When the argument of "hdfs dfs -createSnapshot" comamnd is inappropriate, it is displayed as follows. {code} [hadoop@trunk ~]$ hdfs dfs -createSnapshot -createSnapshot: is missing. Usage: hadoop fs [generic options] -createSnapshot [] {code} On the other hands, the commands of "-renameSnapshot" and "-deleteSnapshot" is displayed as follows. And there are not kind for the user. {code} [hadoop@trunk ~]$ hdfs dfs -renameSnapshot renameSnapshot: args number not 3: 0 [hadoop@trunk ~]$ hdfs dfs -deleteSnapshot deleteSnapshot: args number not 2: 0 {code} It changes "-renameSnapshot" and "-deleteSnapshot" to output the message which is similar to "-createSnapshot". -- This message was sent by Atlassian JIRA (v6.1#6144)