Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/5876#discussion_r29898475
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala ---
@@ -70,24 +71,22 @@ class TestHiveContext(sc: SparkContext) extends
HiveContext(sc) {
hiveconf.set("hive.plan.serialization.format", "javaXML")
lazy val warehousePath = Utils.createTempDir()
- lazy val metastorePath = Utils.createTempDir()
+ lazy val metastorePath = {
+ val temp = Utils.createTempDir()
+ temp.delete()
+ temp
+ }
/** Sets up the system initially or after a RESET command */
- protected def configure(): Unit = {
- warehousePath.delete()
- metastorePath.delete()
- setConf("javax.jdo.option.ConnectionURL",
- s"jdbc:derby:;databaseName=$metastorePath;create=true")
- setConf("hive.metastore.warehouse.dir", warehousePath.toString)
- }
+ protected override def configure(): Map[String, String] = Map(
+ "javax.jdo.option.ConnectionURL" ->
s"jdbc:derby:;databaseName=$metastorePath;create=true",
--- End diff --
4th instance... but who's counting. :-)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]