File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver
hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import org.apache.hadoop.hive.ql.session.SessionState
3737import org .apache .thrift .transport .TSocket
3838
3939import org .apache .spark .Logging
40- import org .apache .spark .sql .hive .HiveShim
40+ import org .apache .spark .sql .hive .{ HiveContext , HiveShim }
4141import org .apache .spark .util .Utils
4242
4343private [hive] object SparkSQLCLIDriver {
@@ -81,7 +81,7 @@ private[hive] object SparkSQLCLIDriver {
8181 }
8282 val cliConf = new HiveConf (classOf [SessionState ])
8383 // Override the location of the metastore since this is only used for local execution.
84- HiveContext .newTemporaryConfiguation ().foreach {
84+ HiveContext .newTemporaryConfiguration ().foreach {
8585 case (key, value) => cliConf.set(key, value)
8686 }
8787 val sessionState = new CliSessionState (cliConf)
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
134134 logInfo(s " Initilizing execution hive, version $hiveExecutionVersion" )
135135 new ClientWrapper (
136136 version = IsolatedClientLoader .hiveVersion(hiveExecutionVersion),
137- config = newTemporaryConfiguation ())
137+ config = newTemporaryConfiguration ())
138138 }
139139 SessionState .setCurrentSessionState(executionHive.state)
140140
@@ -463,7 +463,7 @@ private[hive] object HiveContext {
463463 val HIVE_METASTORE_JARS : String = " spark.sql.hive.metastore.jars"
464464
465465 /** Constructs a configuration for hive, where the metastore is located in a temp directory. */
466- def newTemporaryConfiguation (): Map [String , String ] = {
466+ def newTemporaryConfiguration (): Map [String , String ] = {
467467 val tempDir = Utils .createTempDir()
468468 val localMetastore = new File (tempDir, " metastore" )
469469 Map (
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) {
7676
7777 /** Sets up the system initially or after a RESET command */
7878 protected override def configure (): Map [String , String ] =
79- newTemporaryConfiguation () ++ Map (" hive.metastore.warehouse.dir" -> warehousePath.toString)
79+ newTemporaryConfiguration () ++ Map (" hive.metastore.warehouse.dir" -> warehousePath.toString)
8080
8181 val testTempDir = Utils .createTempDir()
8282
You can’t perform that action at this time.
0 commit comments