Skip to content

Commit

Permalink
Spark UI returns 500 in yarn-client mode
Browse files Browse the repository at this point in the history
  • Loading branch information
witgo committed Oct 20, 2014
1 parent d1966f3 commit 9866fbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ class SparkContext(config: SparkConf) extends Logging {
None
}

ui.foreach(_.bind())

/** A default Hadoop Configuration for the Hadoop code (e.g. file systems) that we reuse. */
val hadoopConfiguration = SparkHadoopUtil.get.newConfiguration(conf)

Expand Down Expand Up @@ -341,10 +343,6 @@ class SparkContext(config: SparkConf) extends Logging {
postEnvironmentUpdate()
postApplicationStart()

// Bind the SparkUI after starting the task scheduler
// because certain pages and listeners depend on it
ui.foreach(_.bind())

private[spark] var checkpointDir: Option[String] = None

// Thread Local variable that can be used by users to pass information down the stack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private[ui] class JobProgressPage(parent: JobProgressTab) extends WebUIPage("")
private val live = parent.live
private val sc = parent.sc
private val listener = parent.listener
private lazy val isFairScheduler = parent.isFairScheduler
private def isFairScheduler = parent.isFairScheduler

def render(request: HttpServletRequest): Seq[Node] = {
listener.synchronized {
Expand Down

0 comments on commit 9866fbf

Please sign in to comment.