Skip to content

Commit bf76258

Browse files
committed
Set hive warehouse dir
1 parent 22e8767 commit bf76258

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

morpheus-spark-cypher/src/main/scala/org/opencypher/morpheus/api/MorpheusSession.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ object MorpheusSession extends Serializable {
106106

107107
// Store Hive tables in local temp folder
108108
conf.set("spark.sql.warehouse.dir", Files.createTempDirectory("spark-warehouse").toString)
109+
conf.set("spark.hadoop.hive.metastore.warehouse.dir", Files.createTempDirectory("hive-warehouse").toString)
109110
// Configure Hive to run with in-memory Derby (skips writing metastore_db)
110111
conf.set("javax.jdo.option.ConnectionURL", "jdbc:derby:memory:metastore_db;create=true")
111112
conf.set("javax.jdo.option.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver")

0 commit comments

Comments
 (0)