Github user guoxiaolongzte commented on a diff in the pull request:
https://github.com/apache/spark/pull/20259#discussion_r161937136
--- Diff: core/src/main/scala/org/apache/spark/deploy/master/Master.scala
---
@@ -125,6 +125,8 @@ private[deploy] class Master(
private var restServer: Option[StandaloneRestServer] = None
private var restServerBoundPort: Option[Int] = None
+ var startupTime: Long = 0
--- End diff --
metricRegistry.register(MetricRegistry.name("startupTime"), new
Gauge[String] {
override def getValue: String = UIUtils.formatDate(master.startupTime)
})
if startupTime is private, master.startupTime is unable to call.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]