Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6831

Inconsistency between 'hdfs dfsadmin' and 'hdfs dfsadmin -help'

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      There is an inconsistency between the console outputs of 'hdfs dfsadmin' command and 'hdfs dfsadmin -help' command.

      [root@trunk ~]# hdfs dfsadmin
      Usage: java DFSAdmin
      Note: Administrative commands can only be run as the HDFS superuser.
                 [-report]
                 [-safemode enter | leave | get | wait]
                 [-allowSnapshot <snapshotDir>]
                 [-disallowSnapshot <snapshotDir>]
                 [-saveNamespace]
                 [-rollEdits]
                 [-restoreFailedStorage true|false|check]
                 [-refreshNodes]
                 [-finalizeUpgrade]
                 [-rollingUpgrade [<query|prepare|finalize>]]
                 [-metasave filename]
                 [-refreshServiceAcl]
                 [-refreshUserToGroupsMappings]
                 [-refreshSuperUserGroupsConfiguration]
                 [-refreshCallQueue]
                 [-refresh]
                 [-printTopology]
                 [-refreshNamenodes datanodehost:port]
                 [-deleteBlockPool datanode-host:port blockpoolId [force]]
                 [-setQuota <quota> <dirname>...<dirname>]
                 [-clrQuota <dirname>...<dirname>]
                 [-setSpaceQuota <quota> <dirname>...<dirname>]
                 [-clrSpaceQuota <dirname>...<dirname>]
                 [-setBalancerBandwidth <bandwidth in bytes per second>]
                 [-fetchImage <local directory>]
                 [-shutdownDatanode <datanode_host:ipc_port> [upgrade]]
                 [-getDatanodeInfo <datanode_host:ipc_port>]
                 [-help [cmd]]
      
      [root@trunk ~]# hdfs dfsadmin -help
      hadoop dfsadmin performs DFS administrative commands.
      The full syntax is: 
      
      hadoop dfsadmin
      	[-report [-live] [-dead] [-decommissioning]]
      	[-safemode <enter | leave | get | wait>]
      	[-saveNamespace]
      	[-rollEdits]
      	[-restoreFailedStorage true|false|check]
      	[-refreshNodes]
      	[-setQuota <quota> <dirname>...<dirname>]
      	[-clrQuota <dirname>...<dirname>]
      	[-setSpaceQuota <quota> <dirname>...<dirname>]
      	[-clrSpaceQuota <dirname>...<dirname>]
      	[-finalizeUpgrade]
      	[-rollingUpgrade [<query|prepare|finalize>]]
      	[-refreshServiceAcl]
      	[-refreshUserToGroupsMappings]
      	[-refreshSuperUserGroupsConfiguration]
      	[-refreshCallQueue]
      	[-refresh <host:ipc_port> <key> [arg1..argn]
      	[-printTopology]
      	[-refreshNamenodes datanodehost:port]
      	[-deleteBlockPool datanodehost:port blockpoolId [force]]
      	[-setBalancerBandwidth <bandwidth>]
      	[-fetchImage <local directory>]
      	[-allowSnapshot <snapshotDir>]
      	[-disallowSnapshot <snapshotDir>]
      	[-shutdownDatanode <datanode_host:ipc_port> [upgrade]]
      	[-getDatanodeInfo <datanode_host:ipc_port>
      	[-help [cmd]
      

      These two outputs should be the same.

      1. HDFS-6831.0.patch
        13 kB
        Xiaoyu Yao
      2. HDFS-6831.1.patch
        13 kB
        Xiaoyu Yao
      3. HDFS-6831.2.patch
        16 kB
        Xiaoyu Yao
      4. HDFS-6831.3.patch
        13 kB
        Xiaoyu Yao
      5. HDFS-6831.4.patch
        16 kB
        Xiaoyu Yao

        Activity

        Akira AJISAKA created issue -
        Akira AJISAKA made changes -
        Field Original Value New Value
        Project Hadoop Common [ 12310240 ] Hadoop HDFS [ 12310942 ]
        Key HADOOP-10943 HDFS-6831
        Affects Version/s 2.4.0 [ 12326143 ]
        Affects Version/s 2.4.0 [ 12326144 ]
        Xiaoyu Yao made changes -
        Attachment HDFS-6831.0.patch [ 12664844 ]
        Xiaoyu Yao made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Xiaoyu Yao made changes -
        Attachment HDFS-6831.1.patch [ 12664850 ]
        Arpit Agarwal made changes -
        Assignee Xiaoyu Yao [ xiaoyuyao ]
        Arpit Agarwal made changes -
        Assignee Xiaoyu Yao [ xiaoyuyao ] Xiaoyu Yao [ xyao ]
        Arpit Agarwal made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Arpit Agarwal made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Xiaoyu Yao made changes -
        Attachment HDFS-6831.2.patch [ 12666650 ]
        Xiaoyu Yao made changes -
        Attachment HDFS-6831.3.patch [ 12666668 ]
        Xiaoyu Yao made changes -
        Attachment HDFS-6831.4.patch [ 12666801 ]
        Arpit Agarwal made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 2.6.0 [ 12327181 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Xiaoyu Yao
            Reporter:
            Akira AJISAKA
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development