title: SparkSQL Dataframe Error: value show is not a member of org.apache.spark.sql.DataFrameReader
body: <p>I'm new to Spark/Scala/Dataframes.  I'm using Scala 2.10.5, Spark 1.6.0.  I am trying to load in a csv file and then create a dataframe from it.  Using the scala shell I execute the following in the order below. Once I execute line 6, I get an error that says:</p>
  
  <p><code>error: value show is not a member of org.apache.spark.sql.DataFrameReader</code></p>
  
  <p>Could someone advise what I might be missing? I understand I don't need to import sparkcontext if I'm using the REPL (shell) so sc will be automatically created, but any ideas what I'm doing wrong? </p>
  
  <p>1.<code>import org.apache.spark.sql.SQLContext</code></p>
  
  <ol start="2">
  <li><p><code>import sqlContext.implicits._</code></p></li>
  <li><p><code>val sqlContext = new SQLContext(sc)</code></p></li>
  <li><p><code>val csvfile = "path_to_filename in hdfs...."</code></p></li>
  <li><p><code>val df = sqlContext.read.format(csvfile).option("header", "true").option("inferSchema", "true")</code></p></li>
  <li><p><code>df.show()</code> </p></li>
  </ol>