Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/22504#discussion_r226737371
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
@@ -116,6 +117,13 @@ private[history] class FsHistoryProvider(conf:
SparkConf, clock: Clock)
// Visible for testing
private[history] val fs: FileSystem = new
Path(logDir).getFileSystem(hadoopConf)
+ private val driverLogFs: Option[FileSystem] =
+ if (conf.get(DRIVER_LOG_DFS_DIR).isDefined) {
--- End diff --
Use `conf.get(DRIVER_LOG_DFS_DIR).map`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]