Skip to content

Commit ac5e16b

Browse files
author
Egor Krivokon
committed
MapR [SPARK-891] Thrift server start fails due to unsupported Hive Metastore version (apache#837)
1 parent 29542fe commit ac5e16b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

conf/spark-defaults.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,4 @@ spark.sql.warehouse.dir maprfs:///user/${system:user.name}/spark-ware
1515
# Fix for SPARK-7819
1616
spark.sql.hive.metastore.sharedPrefixes com.mysql.jdbc,org.postgresql,com.microsoft.sqlserver,oracle.jdbc,com.mapr.fs.shim.LibraryLoader,com.mapr.security.JNISecurity,com.mapr.fs.jni,com.mapr.fs.ShimLoader
1717

18-
spark.sql.hive.metastore.jars /opt/mapr/spark/spark-3.1.1/jars/*,/opt/mapr/lib/*
19-
20-
spark.sql.hive.metastore.version 2.3
21-
2218
spark.executor.memory 2g

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import org.apache.spark.util.{ChildFirstURLClassLoader, Utils}
5252
private[spark] object HiveUtils extends Logging {
5353

5454
/** The version of hive used internally by Spark SQL. */
55-
val builtinHiveVersion: String = HiveVersionInfo.getVersion
55+
val builtinHiveVersion: String = HiveVersionInfo.getShortVersion
5656

5757
val BUILTIN_HIVE_VERSION = buildStaticConf("spark.sql.hive.version")
5858
.doc("The compiled, a.k.a, builtin Hive version of the Spark distribution bundled with." +

0 commit comments

Comments
 (0)