We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86caf2c commit ca7ae7cCopy full SHA for ca7ae7c
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -509,6 +509,8 @@ private[hive] object HiveContext {
509
val tempDir = Utils.createTempDir()
510
val localMetastore = new File(tempDir, "metastore").getAbsolutePath
511
val propMap: HashMap[String, String] = HashMap()
512
+ // We have to mask all properties in hive-site.xml that relates to metastore data source
513
+ // as we used a local metastore here.
514
HiveConf.ConfVars.values().foreach { confvar =>
515
if (confvar.varname.contains("datanucleus") || confvar.varname.contains("jdo")) {
516
propMap.put(confvar.varname, confvar.defaultVal)
0 commit comments