Skip to content

Commit 5a259f5

Browse files
committed
fix typos
1 parent 81bb366 commit 5a259f5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import org.apache.hadoop.hive.ql.session.SessionState
3737
import org.apache.thrift.transport.TSocket
3838

3939
import org.apache.spark.Logging
40-
import org.apache.spark.sql.hive.HiveShim
40+
import org.apache.spark.sql.hive.{HiveContext, HiveShim}
4141
import org.apache.spark.util.Utils
4242

4343
private[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)

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)