Seems that this is a common issue with Spark 2.0.0 I faced similar with CSV. Saw someone facing this with JSON. https://issues.apache.org/jira/browse/SPARK-16893
On Mon, Aug 8, 2016 at 4:08 PM, Ted Yu <yuzhih...@gmail.com> wrote: > Can you examine classpath to see where *DefaultSource comes from ?* > > *Thanks* > > On Mon, Aug 8, 2016 at 2:34 AM, 金国栋 <scu...@gmail.com> wrote: > >> I'm using Spark2.0.0 to do sql analysis over parquet files, when using >> `read().parquet("path")`, or `write().parquet("path")` in Java(I followed >> the example java file in source code exactly), I always encountered >> >> *Exception in thread "main" java.lang.RuntimeException: Multiple sources >> found for parquet >> (org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat, >> org.apache.spark.sql.execution.datasources.parquet.DefaultSource), please >> specify the fully qualified class name.* >> >> Any idea why? >> >> Thanks. >> >> Best, >> Jelly >> > >