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

Avro MapReduce jobs silently ignore input data without '.avro' extension

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.3
    • 1.7.6
    • None
    • None

    Description

      The AvroInputFormat class explicitly checks each input path for a '.avro' extension.

      If only some of the input paths have the correct extension, the remainder are silently ignored and not included in the job. However, if none of the input paths have the extension, the job will continue and succeed even though no map tasks are allocated, and no work is done.

      This only happens using the old mapred API. The new mapreduce API version will happily read files regardless of extension.

      Is the check necessary?

      Attachments

        1. AVRO-1234-2.patch
          9 kB
          Sandy Ryza
        2. AVRO-1234-1.patch
          7 kB
          Sandy Ryza
        3. AVRO-1234.patch
          4 kB
          Dave Beech

        Activity

          People

            dbeech Dave Beech
            dbeech Dave Beech
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: