I am trying to read avro file in jupyter notebook but facing this issue.
Caused by: java.lang.ClassNotFoundException: org.apache.spark.sql.avro.AvroFileFormat.DefaultSource
and I can't seem to figure out where how to get this dependency from.
import findspark
findspark.init()
import pyspark
from pyspark.sql import SparkSession
from pyspark.sql.types import *
spark = SparkSession.builder.appName("readavro").master("local").getOrCreate()
result = spark.read.format('com.databricks.spark.avro').load("file:///C:/Downloads/part-r-00000.avro")