Skip to content

Instantly share code, notes, and snippets.

@davideicardi
davideicardi / README.md
Last active May 4, 2025 21:48
Write and read Avro records from bytes array

Avro serialization

There are 4 possible serialization format when using avro:

@Mageswaran1989
Mageswaran1989 / spark_dataset.ipynb
Created January 30, 2020 03:24
A gentele introduction to Spark Datasets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import org.apache.spark._
import org.apache.spark.streaming._
import org.apache.spark.sql.SaveMode._
val sc = spark.sparkContext
val ssc = new StreamingContext(sc, Seconds(1))
val inputPath = "/tmp/inputDir/"