Skip to content

Commit 0db5d5a

Browse files
committed
Added SignalLogger to HistoryServer.
This was omitted in #1260. @aarondav Author: Reynold Xin <[email protected]> Closes #1300 from rxin/historyServer and squashes the following commits: af720a3 [Reynold Xin] Added SignalLogger to HistoryServer.
1 parent fc71658 commit 0db5d5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import org.apache.spark.{Logging, SecurityManager, SparkConf}
2727
import org.apache.spark.deploy.SparkHadoopUtil
2828
import org.apache.spark.ui.{WebUI, SparkUI, UIUtils}
2929
import org.apache.spark.ui.JettyUtils._
30-
import org.apache.spark.util.Utils
30+
import org.apache.spark.util.{SignalLogger, Utils}
3131

3232
/**
3333
* A web server that renders SparkUIs of completed applications.
@@ -169,10 +169,11 @@ class HistoryServer(
169169
*
170170
* This launches the HistoryServer as a Spark daemon.
171171
*/
172-
object HistoryServer {
172+
object HistoryServer extends Logging {
173173
private val conf = new SparkConf
174174

175175
def main(argStrings: Array[String]) {
176+
SignalLogger.register(log)
176177
initSecurity()
177178
val args = new HistoryServerArguments(conf, argStrings)
178179
val securityManager = new SecurityManager(conf)

0 commit comments

Comments
 (0)