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

Code sample in Tool javadocs is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.0.3
    • None
    • mrv1
    • None

    Description

      The javadocs in org.apache.hadoop.util.Tool contain an example to use the tool runner to invoke a tool.

      If you copy and paste the example into a java file it doesn't even compile

      1. job.setInputPath() isn't there
      2. job.setOutputPath() isn't there
      3. job.waitForCompletion() isn't invoked
      4. the Tool.run() implementation doesn't contain a return statement.

      The processed javadocs are online: http://hadoop.apache.org/common/docs/r1.0.3/api/org/apache/hadoop/util/Tool.html

      Attachments

        1. MAPREDUCE-4285.001.patch
          2 kB
          Gergely Novák

        Activity

          People

            GergelyNovak Gergely Novák
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: