allowing multiple SPARK context is different from hiveContext and sqlContext. hiveContext has more methods and properties than sqlContext and all the methods and properties.
In the GUI you will be able to see SQL, SQL1, .... tabs when multiple sqlContexts are active. But why would you want that? Regards, Gourav On Tue, Apr 12, 2016 at 12:46 PM, Sun, Rui <rui....@intel.com> wrote: > val ALLOW_MULTIPLE_CONTEXTS = > booleanConf("spark.sql.allowMultipleContexts", > > defaultValue = Some(true), > > doc = "When set to true, creating multiple SQLContexts/HiveContexts is > allowed." + > > "When set to false, only one SQLContext/HiveContext is allowed to be > created " + > > "through the constructor (new SQLContexts/HiveContexts created > through newSession " + > > "method is allowed). Please note that this conf needs to be set in > Spark Conf. Once" + > > "a SQLContext/HiveContext has been created, changing the value of > this conf will not" + > > "have effect.", > > isPublic = true) > > > > I don’t think there is any performance pernalties of doing so. > > *From:* Natu Lauchande [mailto:nlaucha...@gmail.com] > *Sent:* Tuesday, April 12, 2016 4:49 PM > *To:* user@spark.apache.org > *Subject:* Can i have a hive context and sql context in the same app ? > > > > Hi, > > Is it possible to have both a sqlContext and a hiveContext in the same > application ? > > If yes would there be any performance pernalties of doing so. > > > > Regards, > > Natu >