Skip to content

Commit 6147cbe

Browse files
committed
filter other conf
1 parent 22cc3bc commit 6147cbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
130130
* custom appenders that are used by log4j.
131131
*/
132132
protected[hive] def hiveMetastoreSharedPrefixes: Seq[String] =
133-
getConf("spark.sql.hive.metastore.sharedPrefixes", jdbcPrefixes).split(",")
133+
getConf("spark.sql.hive.metastore.sharedPrefixes", jdbcPrefixes)
134+
.split(",").filterNot(_ == "")
134135

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

0 commit comments

Comments
 (0)