Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-4806

Use Avro version from root pom file for Flink bundle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.1
    • None

    Description

      In pom of flink bundle it specifically defines avro 1.10.0 as its dependency, but this will cause conflicts with some avro generated classes if the project was built with spark3 profile which uses avro 1.11.0.

      Example exception:

      {{}}

      Caused by: java.lang.NoSuchMethodError: org.apache.hudi.org.apache.avro.specific.SpecificRecordBuilderBase.<init>(Lorg/apache/hudi/org/apache/avro/Schema;Lorg/apache/hudi/org/apache/avro/specific/SpecificData;)V

      {{}}

       

      We should make avro version consistent across the whole project

       

      Also, in flink bundle we are shading avro version so it doesn't matter which avro Flink is using.

      Attachments

        Issue Links

          Activity

            People

              yc2523 Shawn Chang
              yc2523 Shawn Chang
              Ethan Guo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: