Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix review comments
  • Loading branch information
weiqingy committed Apr 20, 2017
commit 48069ccb17785bf4a406459d382b13e70b2e704e
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,13 @@ private[sql] class SharedState(val sparkContext: SparkContext) extends Logging {
}
}

object SharedState {
URL.setURLStreamHandlerFactory(new FsUrlStreamHandlerFactory())
object SharedState extends Logging {
try {
URL.setURLStreamHandlerFactory(new FsUrlStreamHandlerFactory())
} catch {
case e: Error =>
logWarning("URL.setURLStreamHandlerFactory failed to set FsUrlStreamHandlerFactory")
}

private val HIVE_EXTERNAL_CATALOG_CLASS_NAME = "org.apache.spark.sql.hive.HiveExternalCatalog"

Expand Down