Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26045

Error in the spark 2.4 release package with the spark-avro_2.11 depdency

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.4, 3.0.0
    • Component/s: Build
    • Labels:
      None
    • Environment:

      4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

      Description

      Hello I have been problems with the last spark 2.4 release, the read avro file feature does not seem to be working, I have fixed it in local building the source code and updating the avro-1.8.2.jar on the $SPARK_HOME/jars/ dependencies.

      With the default spark 2.4 release when I try to read an avro file spark raise the following exception.  

      spark-shell --packages org.apache.spark:spark-avro_2.11:2.4.0
      
      
      scala> spark.read.format("avro").load("file.avro")
      
      java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType()Lorg/apache/avro/LogicalType;
      at org.apache.spark.sql.avro.SchemaConverters$.toSqlTypeHelper(SchemaConverters.scala:51)
      at org.apache.spark.sql.avro.SchemaConverters$.toSqlTypeHelper(SchemaConverters.scala:105
      

      Checksum:  spark-2.4.0-bin-without-hadoop.tgz: 7670E29B 59EAE7A8 5DBC9350 085DD1E0 F056CA13 11365306 7A6A32E9 B607C68E A8DAA666 EF053350 008D0254 318B70FB DE8A8B97 6586CA19 D65BA2B3 FD7F919E

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srowen Sean R. Owen
                Reporter:
                o.garcia Oscar garcía
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified