Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-36

Avro Compression settings are ignored by Crunch

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.3.0
    • IO
    • None

    Description

      Java Avro Map/reduce jobs will compress the output if the configuration setting mapred.output.compress is true. Avro supports two codecs (deflate and snappy). Users typically select the code by calling AvroJob.setOutputCodec and specifying either org.apache.avro.file.DataFileConstants.SNAPPY_CODEC or org.apache.avro.file.DataFileConstants.DEFLATE_CODEC. Users can specify the deflate level by setting the configuration setting avro.mapred.deflate.level.

      org.apache.crunch.types.avro.AvroOutuptFormat currently ignores these setting.

      I'll follow up with a patch that fixes this problem.

      Attachments

        1. CRUNCH-36.patch
          3 kB
          Joseph Adler

        Activity

          People

            Unassigned Unassigned
            jadler Joseph Adler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment