When Initialising Spark in Command-line interface by default SparkContext is initialised as sc and SQLContext as sqlContext.
But I need HiveContext as I am using a function collect_list
which is not supported by SparkContext, but is supported by HiveContext. Since HiveContext is a superclass of SparkContext ,it should have worked,but it isn't.
HOW DO I INITIALISE HiveContext in Scala using Spark CLI?