Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6389

Fix BaileyBorweinPlouffe CLI usage message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • 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;
          }
      

      Attachments

        1. MAPREDUCE-6389.patch
          1 kB
          Brahma Reddy Battula

        Activity

          People

            brahmareddy Brahma Reddy Battula
            brahmareddy Brahma Reddy Battula
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: