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
Use the following instead:
val sqlContext = new SQLContext(sc);
It should resolve your issue.