> Hmm... I thought HiveContext will only worki if Hive is present. I am > curious > to know when to use HiveContext and when to use SqlContext. >
http://spark.apache.org/docs/latest/sql-programming-guide.html#getting-started TLDR; Always use HiveContext if your application does not have a dependency conflict with Hive jars. :)