diff options
author | Yin Huai <yhuai@databricks.com> | 2015-12-10 12:04:20 -0800 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2015-12-10 12:04:20 -0800 |
commit | ec5f9ed5de2218938dba52152475daafd4dc4786 (patch) | |
tree | 7f91343a7b237e373fad5d78f93884de0e78638d /sql/hive-thriftserver/src | |
parent | bc5f56aa60a430244ffa0cacd81c0b1ecbf8d68f (diff) | |
download | spark-ec5f9ed5de2218938dba52152475daafd4dc4786.tar.gz spark-ec5f9ed5de2218938dba52152475daafd4dc4786.tar.bz2 spark-ec5f9ed5de2218938dba52152475daafd4dc4786.zip |
[SPARK-12228][SQL] Try to run execution hive's derby in memory.
This PR tries to make execution hive's derby run in memory since it is a fake metastore and every time we create a HiveContext, we will switch to a new one. It is possible that it can reduce the flakyness of our tests that need to create HiveContext (e.g. HiveSparkSubmitSuite). I will test it more.
https://issues.apache.org/jira/browse/SPARK-12228
Author: Yin Huai <yhuai@databricks.com>
Closes #10204 from yhuai/derbyInMemory.
Diffstat (limited to 'sql/hive-thriftserver/src')
-rw-r--r-- | sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala index 4b928e600b..03bb2c2225 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala @@ -83,7 +83,7 @@ private[hive] object SparkSQLCLIDriver extends Logging { val cliConf = new HiveConf(classOf[SessionState]) // Override the location of the metastore since this is only used for local execution. - HiveContext.newTemporaryConfiguration().foreach { + HiveContext.newTemporaryConfiguration(useInMemoryDerby = false).foreach { case (key, value) => cliConf.set(key, value) } val sessionState = new CliSessionState(cliConf) |