Skip to content

Commit

Permalink
Merge pull request apache#87 from mapr/mapr-26053
Browse files Browse the repository at this point in the history
[MAPR-26053] Include MapR Classes to the default value of spark.sql.h…
  • Loading branch information
rsotn-mapr authored Feb 8, 2017
2 parents 5fca03a + 608e920 commit 3a83ddb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,15 @@ private[spark] object HiveUtils extends Logging {
"shared. For example, custom appenders that are used by log4j.")
.stringConf
.toSequence
.createWithDefault(jdbcPrefixes)
.createWithDefault(jdbcPrefixes ++ maprPrefixes)

private def jdbcPrefixes = Seq(
"com.mysql.jdbc", "org.postgresql", "com.microsoft.sqlserver", "oracle.jdbc")

private def maprPrefixes = Seq(
"com.mapr.fs.shim.LibraryLoader", "com.mapr.fs.ShimLoader", "com.mapr.security.JNISecurity",
"com.mapr.fs.jni")

val HIVE_METASTORE_BARRIER_PREFIXES = SQLConfigBuilder("spark.sql.hive.metastore.barrierPrefixes")
.doc("A comma separated list of class prefixes that should explicitly be reloaded for each " +
"version of Hive that Spark SQL is communicating with. For example, Hive UDFs that are " +
Expand Down

0 comments on commit 3a83ddb

Please sign in to comment.