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 5E230108D6 for ; Wed, 6 Nov 2013 03:54:29 +0000 (UTC) Received: (qmail 85633 invoked by uid 500); 6 Nov 2013 03:54:26 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 84761 invoked by uid 500); 6 Nov 2013 03:54:21 -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 84691 invoked by uid 99); 6 Nov 2013 03:54:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 03:54:17 +0000 Date: Wed, 6 Nov 2013 03:54:17 +0000 (UTC) From: "Stephen Chu (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-5468) CacheAdmin help command does not recognize commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Stephen Chu created HDFS-5468: --------------------------------- Summary: CacheAdmin help command does not recognize commands Key: HDFS-5468 URL: https://issues.apache.org/jira/browse/HDFS-5468 Project: Hadoop HDFS Issue Type: Bug Components: tools Affects Versions: 3.0.0, 2.3.0 Reporter: Stephen Chu Priority: Minor Currently, the hdfs cacheadmin -help command will not recognize correct command inputs: {code} [hdfs@hdfs-cache ~]# hdfs cacheadmin -help listPools Sorry, I don't know the command 'listPools'. Valid command names are: -addDirective, -removeDirective, -removeDirectives, -listDirectives, -addPool, -modifyPool, -removePool, -listPools, -help [hdfs@hdfs-cache ~]# hdfs cacheadmin -help -listPools Sorry, I don't know the command 'listPools'. Valid command names are: -addDirective, -removeDirective, -removeDirectives, -listDirectives, -addPool, -modifyPool, -removePool, -listPools, -help {code} In the code, we strip the input command of leading hyphens, but then compare it to the command names, which are all prefixed by a hyphen. Also, cacheadmin -removeDirectives requires specifying a path with -path but -path is not shown in the usage. We should fix this as well. -- This message was sent by Atlassian JIRA (v6.1#6144)