{"action":"closed","issue":{"url":"https://api.github.com/repos/databricks/spark-avro/issues/131","repository_url":"https://api.github.com/repos/databricks/spark-avro","labels_url":"https://api.github.com/repos/databricks/spark-avro/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/databricks/spark-avro/issues/131/comments","events_url":"https://api.github.com/repos/databricks/spark-avro/issues/131/events","html_url":"https://github.com/databricks/spark-avro/issues/131","id":155423549,"number":131,"title":"Failed to read avro file ","user":{"login":"corsc","id":1555989,"avatar_url":"https://avatars.githubusercontent.com/u/1555989?v=3","gravatar_id":"","url":"https://api.github.com/users/corsc","html_url":"https://github.com/corsc","followers_url":"https://api.github.com/users/corsc/followers","following_url":"https://api.github.com/users/corsc/following{/other_user}","gists_url":"https://api.github.com/users/corsc/gists{/gist_id}","starred_url":"https://api.github.com/users/corsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corsc/subscriptions","organizations_url":"https://api.github.com/users/corsc/orgs","repos_url":"https://api.github.com/users/corsc/repos","events_url":"https://api.github.com/users/corsc/events{/privacy}","received_events_url":"https://api.github.com/users/corsc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T06:09:19Z","updated_at":"2016-05-19T00:17:28Z","closed_at":"2016-05-19T00:17:28Z","body":"I am getting this error while attempting to run my spark app (locally)\r\n\r\n`Exception in thread \"main\" java.lang.LinkageError: loader constraint violation: when resolving overridden method \"com.databricks.spark.avro.AvroRelation.logInfo(Lscala/Function0;)V\" the class loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) of the current class, com/databricks/spark/avro/AvroRelation, and its superclass loader (instance of sun/misc/Launcher$AppClassLoader), have different Class objects for the type scala/Function0 used in the signature\r\n\tat com.databricks.spark.avro.DefaultSource.createRelation(DefaultSource.scala:30)\r\n\tat org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:176)\r\n\tat org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119)\r\n\tat org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:109)\r\n\tat x.x.x.x.X$.main(X.scala:15)\r\n\tat x.x.x.x.X.main(X.scala)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)\r\n\tat org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)\r\n\tat org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)\r\n\tat org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)\r\n\tat org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)`\r\n\r\nI have tried building this with sbt and mvn and have spent considerable amount of time messing around with the assembly plugin and dependency exclusions on both.\r\n\r\nI am happy to provide more info (I am a Scala noob so I don't know what you might want).\r\n"}}