You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Stephen Chu (JIRA)" <ji...@apache.org> on 2013/11/06 04:54:17 UTC

[jira] [Created] (HDFS-5468) CacheAdmin help command does not recognize commands

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)