title: Apache Spark 2.0 (PySpark) - DataFrame Error Multiple sources found for csv
body: <p>I am trying to create a dataframe using the following code in Spark 2.0. While executing the code in Jupyter/Console, I am facing the below error. Can someone help me how to get rid of this error?</p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>Py4JJavaError: An error occurred while calling o34.csv.
    : java.lang.RuntimeException: Multiple sources found for csv (org.apache.spark.sql.execution.datasources.csv.CSVFileFormat, com.databricks.spark.csv.DefaultSource15), please specify the fully qualified class name.
        at scala.sys.package$.error(package.scala:27)</p>
  </blockquote>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>   from pyspark.sql import SparkSession
     if __name__ == "__main__":
        session = SparkSession.builder.master('local')
                       .appName("RealEstateSurvey").getOrCreate()
        df = session \
             .read \
             .option("inferSchema", value = True) \
             .option('header','true') \
             .csv("/home/senthiljdpm/RealEstate.csv")
  
       print("=== Print out schema ===")
       session.stop()
  </code></pre>