Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,13 @@ private[hive] object HiveContext {
s"jdbc:derby:;databaseName=${localMetastore.getAbsolutePath};create=true")
propMap.put("datanucleus.rdbms.datastoreAdapterClassName",
"org.datanucleus.store.rdbms.adapter.DerbyAdapter")

// SPARK-11783 When "hive.metastore.uris" is set, it overrides "javax.jdo.option.ConnectionURL",
// thus the execution Hive client connects to the actual remote Hive metastore instead of the
// Derby metastore created in the temporary directory. Cleaning this configuration for
// the execution Hive client fixes this issue.
propMap.put(ConfVars.METASTOREURIS.varname, "")

propMap.toMap
}

Expand Down