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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.2
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: