Registry / serialization / spark-avro-2-11

spark-avro-2-11

JSON →
library2.4.8javamavenunverified

Apache Spark Avro data source for reading and writing Avro files, built for Scala 2.11.

<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-avro_2.11</artifactId> <version>2.4.8</version> </dependency>
INSTALL
IMPORT
SIG · SPARK-AVRO-2-11
S
spark-avro-2-11
serializationjavav2.4.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AvroDataFrameReader
org.apache.spark.sql.avro.AvroDataFrameReader

Create an Avro DataFrame reader in Spark

import org.apache.spark.sql.SparkSession; import org.apache.spark.sql.avro.AvroDataFrameReader; public class Example { public static void main(String[] args) { SparkSession spark = SparkSession.builder().appName("Example").getOrCreate(); AvroDataFrameReader reader = new AvroDataFrameReader(spark); System.out.println("Avro reader created"); } }
Debug
Known issues
breakingThis version targets Scala 2.11; use spark-avro_2.12 or spark-avro_2.13 for newer Scala versions.
fix
Use the artifact with the appropriate Scala version suffix (e.g., spark-avro_2.12 for Spark 2.4 with Scala 2.12).
affects: <=2.4.8
Upgrade
Version history
2.4.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
spark-avro-2-11 — mvn dependency:get spark-avro-2-11 · libregistry