-
- Downloads
[SPARK-21732][SQL] Lazily init hive metastore client
## What changes were proposed in this pull request? This PR changes the codes to lazily init hive metastore client so that we can create SparkSession without talking to the hive metastore sever. It's pretty helpful when you set a hive metastore server but it's down. You can still start the Spark shell to debug. ## How was this patch tested? The new unit test. Author: Shixiong Zhu <shixiong@databricks.com> Closes #18944 from zsxwing/hive-lazy-init.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/internal/BaseSessionStateBuilder.scala 4 additions, 4 deletions...g/apache/spark/sql/internal/BaseSessionStateBuilder.scala
- sql/core/src/main/scala/org/apache/spark/sql/internal/SessionState.scala 20 additions, 8 deletions...in/scala/org/apache/spark/sql/internal/SessionState.scala
- sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala 57 additions, 0 deletions...spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala
Please register or sign in to comment