how to resolve this error

org.apache.spark.sql.AnalysisException: Failed to find data source: com.databricks.spark.avro. Please find an Avro package at http://spark.apache.org/third-party-projects
.html;

Please see this discussion on how to use various formats in spark dataframes using pyspark.