Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/718#discussion_r13565675
--- Diff:
core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala ---
@@ -38,56 +39,75 @@ import org.apache.spark.util.Utils
* application's event logs are maintained in the application's own
sub-directory. This
* is the same structure as maintained in the event log write code path in
* EventLoggingListener.
- *
- * @param baseLogDir The base directory in which event logs are found
*/
class HistoryServer(
- val baseLogDir: String,
+ conf: SparkConf,
+ provider: ApplicationHistoryProvider,
securityManager: SecurityManager,
- conf: SparkConf)
- extends WebUI(securityManager, HistoryServer.WEB_UI_PORT, conf) with
Logging {
+ port: Int)
+ extends WebUI(securityManager, port, conf) with Logging {
+
+ // How many applications to retain
+ private val retainedApplications =
conf.getInt("spark.history.retainedApplications", 50)
- import HistoryServer._
+ // set whether to enable or disable view acls for all applications
+ private val uiAclsEnabled =
conf.getBoolean("spark.history.ui.acls.enable", false)
- private val fileSystem = Utils.getHadoopFileSystem(baseLogDir)
private val localHost = Utils.localHostName()
private val publicHost =
Option(System.getenv("SPARK_PUBLIC_DNS")).getOrElse(localHost)
--- End diff --
No longer used
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---