I have Spark 1.6 and trying to read a csv (or tsv) file as a dataframe. Here are the steps I take:
scala> val sqlContext= new org.apache.spark.sql.SQLCon
Looks like you functions are not chained together properly and it's attempting to run "show()" on the val df, which is a reference to the DataFrameReader class. If I run the following, I can reproduce your error:
val df = sqlContext.read
df.show()
If you restructure the code, it would work:
val df = sqlContext.read.format("com.databricks.spark.csv").option("header", "true").option("inferSchema", "true").load("data.csv")
df.show()