I got the same issue when I use built spark from hdp2.2 repo.
According to https://issues.apache.org/jira/browse/SPARK-3039
It is already fixed in spark 1.2, so build with new spark src should work.
Maybe you also need to add classifier in your dependency
val avro = “org.apache.avro” % “avro-mapred” %”1.7.7″ % classifier “hadoop2″