Skip to content

Commit

Permalink
fix some mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
liyezhang556520 committed Mar 3, 2015
1 parent 11cdb68 commit 79c8cb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/scala/org/apache/spark/deploy/master/Master.scala
Original file line number Diff line number Diff line change
Expand Up @@ -750,16 +750,16 @@ private[spark] class Master(

if (inProgressExists) {
// Event logging is enabled for this application, but the application is still in progress
var msg = s"Application $appName is still in progress, it may be terminated accidently."
logWarning(msg)
logWarning(s"Application $appName is still in progress, it may be terminated accidently.")
}

val eventLogFile = eventLogFilePrefix + {
if (inProgressExists) EventLoggingListener.IN_PROGRESS
val eventLogFile = if (inProgressExists) {
eventLogFilePrefix + EventLoggingListener.IN_PROGRESS
} else {
eventLogFilePrefix
}
val status = if (eventLogFile.endsWith(EventLoggingListener.IN_PROGRESS)) " (inprogress)"
else " (completed)"

val status = if (inProgressExists) " (inprogress)" else " (completed)"
val logInput = EventLoggingListener.openEventLog(new Path(eventLogFile), fs)
val replayBus = new ReplayListenerBus()
val ui = SparkUI.createHistoryUI(new SparkConf, replayBus, new SecurityManager(conf),
Expand Down

0 comments on commit 79c8cb1

Please sign in to comment.