Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15914

hadoop jar command has no help argument

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.1, 3.1.3
    • common
    • None

    Description

      hadoop jar --help and hadoop jar help commands show outputs like this:

      WARNING: Use "yarn jar" to launch YARN applications.
      JAR does not exist or is not a normal file: /root/--help
      

      Only if called with no arguments: hadoop jar we get the usage text, but even in that case we get:

      WARNING: Use "yarn jar" to launch YARN applications.
      RunJar jarFile [mainClass] args...
      

      Where RunJar is wrapped by the hadoop script (so it should not be displayed).

      hadoop --help displays the following:

      jar <jar>     run a jar file. NOTE: please use "yarn jar" to launch YARN applications, not this command.
      

      which is fine, but CommandsManual.md tells a bit more information about the usage of this command:

      Usage: hadoop jar <jar> [mainClass] args...
      

      My suggestion is to add a --help option to the hadoop jar command that would display this message.

      Attachments

        1. HADOOP-15914.000.patch
          2 kB
          Adam Antal

        Activity

          People

            adam.antal Adam Antal
            adam.antal Adam Antal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: