I am trying to construct a Hive Context ,which inherits from SQLContext.
val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)
I get t
Because of hive's dependencies it is not compiled into the spark binary by default you have to build it yourself. Quote from the website
However, since Hive has a large number of dependencies, it is not included in the default Spark assembly. In order to use Hive you must first run sbt/sbt -Phive assembly/assembly
(or use -Phive for maven).