Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3723

All commands should support meaningful --help

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: scripts, tools
    • Labels:
      None

      Description

      Some (sub)commands support -help or -h options for detailed help while others do not. Ideally, all commands should support meaningful help that works regardless of current state or configuration.

      For example, hdfs zkfc --help (or -h or -help) is not very useful. Option checking should occur before state / configuration checking.

      
      [esammer@hadoop-fed01 ~]# hdfs zkfc --help
      Exception in thread "main" org.apache.hadoop.HadoopIllegalArgumentException: HA is not enabled for this namenode.
              at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.setConf(DFSZKFailoverController.java:122)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:66)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
              at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:168)
      

      This would go a long way toward better usability for ops staff.

      1. HDFS-3723.patch
        22 kB
        Jing Zhao
      2. HDFS-3723.patch
        24 kB
        Jing Zhao
      3. HDFS-3723.001.patch
        34 kB
        Jing Zhao
      4. HDFS-3723.001.patch
        35 kB
        Jing Zhao
      5. HDFS-3723.002.patch
        39 kB
        Jing Zhao
      6. HDFS-3723.003.patch
        41 kB
        Jing Zhao
      7. HDFS-3723.patch
        35 kB
        Suresh Srinivas

        Activity

        E. Sammer created issue -
        Jing Zhao made changes -
        Field Original Value New Value
        Assignee Jing Zhao [ jingzhao ]
        Jing Zhao made changes -
        Attachment HDFS-3723.patch [ 12538421 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.patch [ 12538630 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.patch [ 12538421 ]
        Aaron T. Myers made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Target Version/s 2.2.0-alpha [ 12322472 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.patch [ 12539081 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.001.patch [ 12540767 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.001.patch [ 12540826 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.002.patch [ 12540858 ]
        Jing Zhao made changes -
        Attachment HDFS-3723.003.patch [ 12540903 ]
        Suresh Srinivas made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 3.0.0 [ 12320356 ]
        Resolution Fixed [ 1 ]
        Suresh Srinivas made changes -
        Attachment HDFS-3723.patch [ 12540983 ]
        Suresh Srinivas made changes -
        Attachment HDFS-3723.patch [ 12540983 ]
        Suresh Srinivas made changes -
        Attachment HDFS-3723.patch [ 12540986 ]
        Suresh Srinivas made changes -
        Fix Version/s 2.1.0-alpha [ 12321440 ]
        Arun C Murthy made changes -
        Fix Version/s 2.0.2-alpha [ 12322472 ]
        Fix Version/s 2.1.0-alpha [ 12321440 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320356 ]

          People

          • Assignee:
            Jing Zhao
            Reporter:
            E. Sammer
          • Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development