@@ -23,13 +23,9 @@ import java.sql.Timestamp
2323import org .scalatest .Suite
2424
2525import scala .math .abs
26- import scala .collection .mutable .HashMap
2726
2827import org .apache .spark .rdd .RDD
2928import org .apache .spark .sql ._
30- import org .apache .spark .sql .hive ._
31- import org .apache .hadoop .hive .conf .HiveConf
32- import org .apache .hadoop .hive .conf .HiveConf .ConfVars
3329
3430/**
3531 * :: Experimental ::
@@ -80,6 +76,7 @@ trait DataFrameSuiteBaseLike extends SparkContextProvider
8076 // We have to mask all properties in hive-site.xml that relates to metastore
8177 // data source as we used a local metastore here.
8278 if (enableHiveSupport) {
79+ import org .apache .hadoop .hive .conf .HiveConf
8380 val hiveConfVars = HiveConf .ConfVars .values()
8481 val accessiableHiveConfVars = hiveConfVars.map(WrappedConfVar (_))
8582 accessiableHiveConfVars.foreach { confvar =>
@@ -88,12 +85,12 @@ trait DataFrameSuiteBaseLike extends SparkContextProvider
8885 builder.config(confvar.varname, confvar.getDefaultExpr())
8986 }
9087 }
88+ builder.config(HiveConf .ConfVars .METASTOREURIS .varname, " " )
9189 }
9290 builder.config(" javax.jdo.option.ConnectionURL" ,
9391 s " jdbc:derby:;databaseName= $localMetastorePath;create=true " )
9492 builder.config(" datanucleus.rdbms.datastoreAdapterClassName" ,
9593 " org.datanucleus.store.rdbms.adapter.DerbyAdapter" )
96- builder.config(ConfVars .METASTOREURIS .varname, " " )
9794 builder.config(" spark.sql.streaming.checkpointLocation" ,
9895 Utils .createTempDir().toPath().toString)
9996 builder.config(" spark.sql.warehouse.dir" ,
0 commit comments