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

Description on usage of classpath in hadoop command is incomplete.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.0
    • Component/s: tools
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Description on usage of classpath in hadoop command is incomplete.

      1. ./hadoop
        Usage: hadoop [--config confdir] COMMAND
        where COMMAND is one of:
        fs run a generic filesystem user client
        version print the version
        jar <jar> run a jar file
        checknative [-a|-h] check native hadoop and compression libraries availability
        distcp <srcurl> <desturl> copy file or directories recursively
        archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
        classpath prints the class path needed to get the
        credential interact with credential providers
        /* Remove this below line */
        Hadoop jar and the required libraries
        daemonlog get/set the log level for each daemon

      Expected -
      classpath prints the class path needed to get the
      Hadoop jar and the required libraries

      credential interact with credential providers

        Activity

        Hide
        cnauroth Chris Nauroth added a comment -

        Hi, Archana T. Could you please help me understand the issue better? See below for the output of hadoop from a recent trunk build. I don't see a problem with the description of the classpath sub-command.

        > hadoop
        Usage: hadoop [--config confdir] [COMMAND | CLASSNAME]
          CLASSNAME            run the class named CLASSNAME
         or
          where COMMAND is one of:
          archive -archiveName NAME -p <parent path> <src>* <dest>
                               create a Hadoop archive
          checknative [-a|-h]  check native Hadoop and compression 
                                 libraries availability
          classpath            prints the class path needed to get the
                                 Hadoop jar and the required libraries
          credential           interact with credential providers
          daemonlog            get/set the log level for each daemon
          distch path:owner:group:permisson
                               distributed metadata changer
          distcp <srcurl> <desturl> 
                               copy file or directories recursively
          fs                   run a generic filesystem user client
          jar <jar>            run a jar file
                               note: please use "yarn jar" to launch
                                     YARN applications, not this command.
          jnipath              prints the java.library.path
          kerbname             show auth_to_local principal conversion
          key                  manage keys via the KeyProvider
          trace                view and modify Hadoop tracing settings
          version              print the version
        
        Most commands print help when invoked w/o parameters.
        
        Show
        cnauroth Chris Nauroth added a comment - Hi, Archana T . Could you please help me understand the issue better? See below for the output of hadoop from a recent trunk build. I don't see a problem with the description of the classpath sub-command. > hadoop Usage: hadoop [--config confdir] [COMMAND | CLASSNAME] CLASSNAME run the class named CLASSNAME or where COMMAND is one of: archive -archiveName NAME -p <parent path> <src>* <dest> create a Hadoop archive checknative [-a|-h] check native Hadoop and compression libraries availability classpath prints the class path needed to get the Hadoop jar and the required libraries credential interact with credential providers daemonlog get/set the log level for each daemon distch path:owner:group:permisson distributed metadata changer distcp <srcurl> <desturl> copy file or directories recursively fs run a generic filesystem user client jar <jar> run a jar file note: please use "yarn jar" to launch YARN applications, not this command. jnipath prints the java.library.path kerbname show auth_to_local principal conversion key manage keys via the KeyProvider trace view and modify Hadoop tracing settings version print the version Most commands print help when invoked w/o parameters.
        Hide
        archanat Archana T added a comment -

        Hi Chris Nauroth

        This above issue exists in branch-2

        function print_usage(){
        echo "Usage: hadoop [--config confdir] [COMMAND | CLASSNAME]"
        echo " CLASSNAME run the class named CLASSNAME"
        echo " or"
        echo " where COMMAND is one of:"
        echo " fs run a generic filesystem user client"
        echo " version print the version"
        echo " jar <jar> run a jar file"
        echo " note: please use \"yarn jar\" to launch"
        echo " YARN applications, not this command."
        echo " checknative [-a|-h] check native hadoop and compression libraries availability"
        echo " distcp <srcurl> <desturl> copy file or directories recursively"
        echo " archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive"
        echo " classpath prints the class path needed to get the"
        echo " credential interact with credential providers"
        echo " Hadoop jar and the required libraries"

        echo " daemonlog get/set the log level for each daemon"
        echo " trace view and modify Hadoop tracing settings"
        echo ""
        echo "Most commands print help when invoked w/o parameters."
        }

        Show
        archanat Archana T added a comment - Hi Chris Nauroth This above issue exists in branch-2 function print_usage(){ echo "Usage: hadoop [--config confdir] [COMMAND | CLASSNAME] " echo " CLASSNAME run the class named CLASSNAME" echo " or" echo " where COMMAND is one of:" echo " fs run a generic filesystem user client" echo " version print the version" echo " jar <jar> run a jar file" echo " note: please use \"yarn jar\" to launch" echo " YARN applications, not this command." echo " checknative [-a|-h] check native hadoop and compression libraries availability" echo " distcp <srcurl> <desturl> copy file or directories recursively" echo " archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive" echo " classpath prints the class path needed to get the" echo " credential interact with credential providers" echo " Hadoop jar and the required libraries" echo " daemonlog get/set the log level for each daemon" echo " trace view and modify Hadoop tracing settings" echo "" echo "Most commands print help when invoked w/o parameters." }
        Hide
        cnauroth Chris Nauroth added a comment -

        Yes, I see the problem now on branch-2. Thank you for reporting it.

        I see you have assigned the issue to yourself. Were you planning to contribute a patch? If so, details on the contribution process are here:

        http://wiki.apache.org/hadoop/HowToContribute

        Show
        cnauroth Chris Nauroth added a comment - Yes, I see the problem now on branch-2. Thank you for reporting it. I see you have assigned the issue to yourself. Were you planning to contribute a patch? If so, details on the contribution process are here: http://wiki.apache.org/hadoop/HowToContribute
        Hide
        archanat Archana T added a comment -

        Thanks Chris Nauroth
        I am planning to contribute for a patch sooner.

        Show
        archanat Archana T added a comment - Thanks Chris Nauroth I am planning to contribute for a patch sooner.
        Hide
        archanat Archana T added a comment -

        Chris Nauroth
        Attached the patch, Kindly review the same.

        Show
        archanat Archana T added a comment - Chris Nauroth Attached the patch, Kindly review the same.
        Hide
        hadoopqa Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12703596/HADOOP-11568.patch
        against trunk revision 7711049.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/5908//console

        This message is automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12703596/HADOOP-11568.patch against trunk revision 7711049. -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/5908//console This message is automatically generated.
        Hide
        vinayrpet Vinayakumar B added a comment -

        -1 patch. The patch command could not apply the patch.

        patch is only for branch-2, this is fine. It applies fine on branch-2.

        +1 for the patch.
        Will commit soon.

        Show
        vinayrpet Vinayakumar B added a comment - -1 patch. The patch command could not apply the patch. patch is only for branch-2, this is fine. It applies fine on branch-2. +1 for the patch. Will commit soon.
        Hide
        vinayrpet Vinayakumar B added a comment -

        Committed to branch-2.
        Thanks Archana T for the contribution.
        Thanks Chris Nauroth for the guidance.

        Show
        vinayrpet Vinayakumar B added a comment - Committed to branch-2. Thanks Archana T for the contribution. Thanks Chris Nauroth for the guidance.
        Hide
        archanat Archana T added a comment -

        Thanks Vinayakumar B for commiting .

        Show
        archanat Archana T added a comment - Thanks Vinayakumar B for commiting .

          People

          • Assignee:
            archanat Archana T
            Reporter:
            archanat Archana T
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development