File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
core/src/main/scala/org/apache/spark/deploy/history Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,11 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
148148
149149 override def getAppUI (appId : String ): Option [SparkUI ] = {
150150 try {
151- applications.get(appId).map { info =>
151+ val appOpt = applications.get(appId).orElse {
152+ getListing(true )
153+ applications.get(appId)
154+ }
155+ appOpt.map { info =>
152156 val replayBus = new ReplayListenerBus ()
153157 val ui = {
154158 val conf = this .conf.clone()
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class HistoryServer(
5353
5454 private val appLoader = new CacheLoader [String , SparkUI ] {
5555 override def load (key : String ): SparkUI = {
56- val ui = provider.getAppUI(key).getOrElse(throw new NoSuchElementException ())
56+ val ui = provider.getAppUI(key).getOrElse(throw new NoSuchElementException (s " no app with key $key " ))
5757 attachSparkUI(ui)
5858 ui
5959 }
You can’t perform that action at this time.
0 commit comments