I am trying to load data from avro directory which contains imported avro files of orders table. I used following command while launching spark-shell
spark-shell --packages com.databricks:spark-avro_2.11:4.0.0 --master yarn --conf spark.ui.port=12564
I imported avro package from databricks
after that when I tried to load data to scala variable using following code,
var dataFile = sqlContext.read.avro("/user/karteekkhadoop/solutions/problem4/avro")
I got erroneous are inaccessible type error.
I am unable to figure out what wrong with it. Please help.
I got the following message also.
Thank you in advance