Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The usage message from code does not match with the command helpline option.

      usage from command line

      hduser@canberra:~/work/software/cloudera/hadoop-2.0.0-cdh4.0.0$ hadoop jar src/hadoop-mapreduce-project/hadoop-mapreduce-examples/target/hadoop-mapreduce-examples-2.0.0-cdh4.0.0.jar 
      An example program must be given as the first argument.
      Valid program names are:
        aggregatewordcount: An Aggregate based map/reduce program that counts the words in the input files.
        aggregatewordhist: An Aggregate based map/reduce program that computes the histogram of the words in the input files.
        bbp: A map/reduce program that uses Bailey-Borwein-Plouffe to compute exact digits of Pi.
        dbcount: An example job that count the pageview counts from a database.
        distbbp: A map/reduce program that uses a BBP-type formula to compute exact bits of Pi.
        grep: A map/reduce program that counts the matches of a regex in the input.
      

      usage from code

       public int run(String[] args) throws IOException {
          if (args.length != 4) {
            System.err.println("Usage: java " + getClass().getName()
                + " <startDigit> <nDigits> <nMaps> <workingDir>");
            ToolRunner.printGenericCommandUsage(System.err);
            return -1;
          }
      
      1. MAPREDUCE-6389.patch
        1 kB
        Brahma Reddy Battula

        Activity

        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Attaching the patch to fix..Kindly review

        Show
        brahmareddy Brahma Reddy Battula added a comment - Attaching the patch to fix..Kindly review
        Hide
        hadoopqa Hadoop QA added a comment -



        -1 overall



        Vote Subsystem Runtime Comment
        0 pre-patch 15m 25s Pre-patch trunk compilation is healthy.
        +1 @author 0m 0s The patch does not contain any @author tags.
        -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
        +1 javac 7m 31s There were no new javac warning messages.
        +1 javadoc 9m 34s There were no new javadoc warning messages.
        +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings.
        +1 checkstyle 0m 26s There were no new checkstyle issues.
        +1 whitespace 0m 0s The patch has no lines that end in whitespace.
        +1 install 1m 35s mvn install still works.
        +1 eclipse:eclipse 0m 33s The patch built with eclipse:eclipse.
        +1 findbugs 0m 55s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
        +1 mapreduce tests 0m 36s Tests passed in hadoop-mapreduce-examples.
            37m 0s  



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12738198/MAPREDUCE-6389.patch
        Optional Tests javadoc javac unit findbugs checkstyle
        git revision trunk / 71de367
        hadoop-mapreduce-examples test log https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5780/artifact/patchprocess/testrun_hadoop-mapreduce-examples.txt
        Test Results https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5780/testReport/
        Java 1.7.0_55
        uname Linux asf903.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
        Console output https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5780/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 15m 25s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac 7m 31s There were no new javac warning messages. +1 javadoc 9m 34s There were no new javadoc warning messages. +1 release audit 0m 22s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 0m 26s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 35s mvn install still works. +1 eclipse:eclipse 0m 33s The patch built with eclipse:eclipse. +1 findbugs 0m 55s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 mapreduce tests 0m 36s Tests passed in hadoop-mapreduce-examples.     37m 0s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12738198/MAPREDUCE-6389.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 71de367 hadoop-mapreduce-examples test log https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5780/artifact/patchprocess/testrun_hadoop-mapreduce-examples.txt Test Results https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5780/testReport/ Java 1.7.0_55 uname Linux asf903.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/5780/console This message was automatically generated.
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Xuan Gong kindly look into this issue..

        Show
        brahmareddy Brahma Reddy Battula added a comment - Xuan Gong kindly look into this issue..
        Hide
        devaraj.k Devaraj K added a comment -

        +1, looks good to me, will commit it shortly.

        Show
        devaraj.k Devaraj K added a comment - +1, looks good to me, will commit it shortly.
        Hide
        devaraj.k Devaraj K added a comment -

        Thanks Brahma Reddy Battula for your contribution.

        Committed to trunk and branch-2.

        Show
        devaraj.k Devaraj K added a comment - Thanks Brahma Reddy Battula for your contribution. Committed to trunk and branch-2.
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Hadoop-trunk-Commit #8002 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8002/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/CHANGES.txt
        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #8002 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8002/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/CHANGES.txt hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        Hide
        brahmareddy Brahma Reddy Battula added a comment -

        Thanks a lot Devaraj K for review and commit!!!

        Show
        brahmareddy Brahma Reddy Battula added a comment - Thanks a lot Devaraj K for review and commit!!!
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #225 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/225/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #225 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/225/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk #955 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/955/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #955 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/955/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #214 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/214/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #214 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/214/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Hadoop-Hdfs-trunk #2153 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2153/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/CHANGES.txt
        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Hdfs-trunk #2153 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2153/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/CHANGES.txt hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #223 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/223/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #223 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/223/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java hadoop-mapreduce-project/CHANGES.txt
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk #2171 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2171/)
        MAPREDUCE-6389. Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068)

        • hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java
        • hadoop-mapreduce-project/CHANGES.txt
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2171 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2171/ ) MAPREDUCE-6389 . Fix BaileyBorweinPlouffe CLI usage message. Contributed by (devaraj: rev c7729efee8727b59f2c78cd5a3ad23fa84139068) hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/BaileyBorweinPlouffe.java hadoop-mapreduce-project/CHANGES.txt

          People

          • Assignee:
            brahmareddy Brahma Reddy Battula
            Reporter:
            brahmareddy Brahma Reddy Battula
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development