Hadoop Common
  1. Hadoop Common
  2. HADOOP-5976

create script to provide classpath for external tools

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      New Hadoop script command classpath prints the path to the Hadoop jar and libraries.

      Description

      It would be useful for tools building on top of Hadoop to have a script that returns the class path that is needed to get all of the Hadoop jars and the needed libraries.

      1. script.patch
        2 kB
        Devaraj Das
      2. Hadoop-5976.patch
        2 kB
        gary murry
      3. h5976.patch
        0.3 kB
        Owen O'Malley

        Activity

        Hide
        Robert Chansler added a comment -

        Editorial pass over all release notes prior to publication of 0.21.

        Show
        Robert Chansler added a comment - Editorial pass over all release notes prior to publication of 0.21.
        Hide
        Devaraj Das added a comment -

        Patch for the yahoop hadoop-0.20 distribution (not to be committed)

        Show
        Devaraj Das added a comment - Patch for the yahoop hadoop-0.20 distribution (not to be committed)
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk #20 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/20/)
        . Add a new command, classpath, to the hadoop script. Contributed by Owen O'Malley and Gary Murry

        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk #20 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/20/ ) . Add a new command, classpath, to the hadoop script. Contributed by Owen O'Malley and Gary Murry
        Hide
        gary murry added a comment -

        Great, thanks!
        -Gary

        Show
        gary murry added a comment - Great, thanks! -Gary
        Hide
        Tsz Wo Nicholas Sze added a comment -

        I have committed this. Thanks, Owen and Gary!

        Show
        Tsz Wo Nicholas Sze added a comment - I have committed this. Thanks, Owen and Gary!
        Hide
        Tsz Wo Nicholas Sze added a comment -

        +1 patch looks good.

        Show
        Tsz Wo Nicholas Sze added a comment - +1 patch looks good.
        Hide
        gary murry added a comment -

        Also, the -1 javac is related to HADOOP-6122.

        Show
        gary murry added a comment - Also, the -1 javac is related to HADOOP-6122 .
        Hide
        gary murry added a comment -

        This patch includes Owen's original work plus and update to the usage and the comman manual.

        [exec] There appear to be 270 release audit warnings before the patch and 269 release audit warnings after applying the patch.
        [exec]
        [exec]
        [exec]
        [exec]
        [exec] -1 overall.
        [exec]
        [exec] +1 @author. The patch does not contain any @author tags.
        [exec]
        [exec] -1 tests included. The patch doesn't appear to include any new or modified tests.
        [exec] Please justify why no new tests are needed for this patch.
        [exec] Also please list what manual steps were performed to verify this patch.
        [exec]
        [exec] +1 javadoc. The javadoc tool did not generate any warning messages.
        [exec]
        [exec] -1 javac. The applied patch generated 64 javac compiler warnings (more than the trunk's current 124 warnings).
        [exec]
        [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
        [exec]
        [exec] +1 release audit. The applied patch does not increase the total number of release audit warnings.

        The documentation changes required no new unit tests. I do not believe the javac warnings are related to this patch.

        Show
        gary murry added a comment - This patch includes Owen's original work plus and update to the usage and the comman manual. [exec] There appear to be 270 release audit warnings before the patch and 269 release audit warnings after applying the patch. [exec] [exec] [exec] [exec] [exec] -1 overall. [exec] [exec] +1 @author. The patch does not contain any @author tags. [exec] [exec] -1 tests included. The patch doesn't appear to include any new or modified tests. [exec] Please justify why no new tests are needed for this patch. [exec] Also please list what manual steps were performed to verify this patch. [exec] [exec] +1 javadoc. The javadoc tool did not generate any warning messages. [exec] [exec] -1 javac. The applied patch generated 64 javac compiler warnings (more than the trunk's current 124 warnings). [exec] [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings. [exec] [exec] +1 release audit. The applied patch does not increase the total number of release audit warnings. The documentation changes required no new unit tests. I do not believe the javac warnings are related to this patch.
        Hide
        Sharad Agarwal added a comment -

        Should we update commands manual doc as well?

        Show
        Sharad Agarwal added a comment - Should we update commands manual doc as well?
        Hide
        Nigel Daley added a comment -

        Can you update the usage message too in bin/hadoop?

        Show
        Nigel Daley added a comment - Can you update the usage message too in bin/hadoop?
        Hide
        Owen O'Malley added a comment -

        This patch adds a "classpath" option to the hadoop script that prints the classpath.

        Show
        Owen O'Malley added a comment - This patch adds a "classpath" option to the hadoop script that prints the classpath.

          People

          • Assignee:
            Owen O'Malley
            Reporter:
            Owen O'Malley
          • Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development