Hi All,
I want to convert my json file to avro and vice versa but facing some difficulty. Can anyone please help me debugging this?
val df = spark.read.json(“path to the file”)
df.write.format(“com.databricks.spark.avro”).save(“destination location”)
But I am getting the below error:
org.apache.spark.sql.AnalysisException: Failed to find data source: com.databricks.spark.avro.