Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2138

org.apache.avro.mapreduce.AvroMultipleOutputs.write copies Configuration on every invocation of write

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.2
    • None
    • java
    • None

    Description

      While profiling a spark job using AvroMultipleOutputs, I noticed that a great deal of time is wasted by copying (hadoop) Configuration.  Indeed this happens on every invocation of write: https://github.com/apache/avro/blob/master/lang/java/mapred/src/main/java/org/apache/avro/mapreduce/AvroMultipleOutputs.java#L437

      After patching, I am seeing a speed-up of 2x and above in running time of the same job.

      Attachments

        Activity

          People

            Unassigned Unassigned
            srosenberg Stan Rosenberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: