Hive on Spark and accessing HiveContext from the shall are seperate things.
Hive on Spark -
https://cwiki.apache.org/confluence/display/Hive/Hive+on+Spark%3A+Getting+Started
To access hive on Spark you need to built with -Phive.
*I am not clear if spark sql supports HIve on Spark when spark is run as a
service in CDH 5.2? *
Can someone please clarify this. If this is possible, how what configuration
changes have I to make to import hive context in spark shell as well as to
be able to do a spark-submit for the job to be