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

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

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: