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

`hadoop classpath` behaviour different from previous releases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None

      Description

      In 2.6 doing a `hadoop classpath` returns the following

      classpath [--glob|--jar <path>|-h|--help] :
      Prints the classpath needed to get the Hadoop jar and the required
      libraries.
      Options:

      --glob expand wildcards
      --jar <path> write classpath as manifest in jar named <path>
      -h, --help print help

      This is different from earlier releases.
      However, passing any argument to the command will return the classpath as earlier
      E.g. `hadoop classpath foo`

      It would be nice to preserve the original behaviour for scripts that read the classpath using this command.

      The fix seems to be a one line change in
      hadoop-common-project/hadoop-common/src/main/bin/hadoop

        Attachments

          Activity

            People

            • Assignee:
              sdaingade Swapnil Daingade
              Reporter:
              sdaingade Swapnil Daingade
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: