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

Improvement of RandomWriter example to use custom InputFormat, OutputFormat, and Counters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.2
    • 0.12.0
    • None
    • None

    Description

      It would be good if the RandomWriter example used custom InputFormat and OutputFormats rather than creating temporary files in DFS. It is not only faster, it provides a better example to users of how to handle programs that don't have any input. (It still uses FileSplits rather than custom InputSplits, since the FileSplits would do want I need.)

      I also added Counters to the example to count records and bytes written.

      Attachments

        1. random-writer.patch
          9 kB
          Owen O'Malley

        Activity

          People

            omalley Owen O'Malley
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: