I’m trying to save the Data frame results as avro file, but noticed that com.databricks.spark.avro package is unavailable.
Trying to run the below commands, that requires spark avro packages
import com.databricks.spark.avro._;
sqlContext.setConf(“spark.sql.avro.compression.codec”,“snappy”)
dataFrameResult.write.avro("/user/cloudera/problem2/products/result-df");
sqlResult.write.avro("/user/cloudera/problem2/products/result-sql");
rddResult.toDF().write.avro("/user/cloudera/problem2/products/result-rdd");;