Just use TestHive. Its a global singlton that you can share across test
cases. It has a reset function if you want to clear out the state at the
begining of a test.
On Fri, Dec 11, 2015 at 2:06 AM, Sahil Sareen wrote:
> I'm trying to do this in unit tests:
>
> val sConf = new SparkConf()
>
I'm trying to do this in unit tests:
val sConf = new SparkConf()
.setAppName("RandomAppName")
.setMaster("local")
val sc = new SparkContext(sConf)
val sqlContext = new TestHiveContext(sc) // tried new HiveContext(sc)
as well
But I get this:
*[scalatest] **Exception enco