title: value avro is not a member of org.apache.spark.sql.DataFrameReader
body: <p>I have am using cloudera 5.4.1 and spark 1.3.0</p>
  
  <p>I wrote this code</p>
  
  <pre><code>val path = "/input/"
  val conf = new SparkConf()
    .setAppName("Form Submissions")
  val sc = new SparkContext(conf)
  val sqlConf = new SQLContext(sc)
  val df = sqlConf.read.avro(path)
  df.foreach(println)
  </code></pre>
  
  <p>and this is my sbt file</p>
  
  <pre><code>name := "SparkAvro"
  
  version := "1.0"
  
  scalaVersion := "2.10.4"
  
  libraryDependencies ++= Seq(
    //"org.apache.spark" % "spark-core_2.10" % "1.2.0",
    "org.apache.spark" % "spark-core_2.10" % "1.5.2" % "provided",
    "org.apache.spark" % "spark-sql_2.10" % "1.5.2" % "provided",
    "com.databricks" % "spark-avro_2.10" % "1.0.0"
  )
  
  mainClass in assembly := Some("com.abhi.SparkAvro")
  </code></pre>
  
  <p>When I build this project it fails with this error message</p>
  
  <pre><code>[error] /Users/ab/MyProjects/SparkAvro/src/main/scala/com/abhi/SparkAvro.scala:17: 
  value avro is not a member of org.apache.spark.sql.DataFrameReader
  [error]     val df = sqlConf.read.avro(input)
  [error]                           ^
  [error] one error found
  </code></pre>
  
  <p>So it seems that the documentation on the github page for Spark Avro is for version 2.0.1 and those APIs don't apply to 1.0 version of Spark Avro.</p>
  
  <p>I tried searching the web but I couldn't find the documenation which will show me how to write code on Spark Avro 1.0 and be able to parse Avro files on HDFS.</p>