Skip to content

Commit

Permalink
handle JsonParseException for history server
Browse files Browse the repository at this point in the history
  • Loading branch information
liyezhang556520 committed Apr 28, 2015
1 parent 874a2ca commit b8d2d88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
}
try {
val appListener = new ApplicationEventListener
val maybeTruncated = logPath.getName().endsWith(EventLoggingListener.IN_PROGRESS)
bus.addListener(appListener)
bus.replay(logInput, logPath.toString)
bus.replay(logInput, logPath.toString, maybeTruncated)
new FsApplicationHistoryInfo(
logPath.getName(),
appListener.appId.getOrElse(logPath.getName()),
Expand Down

0 comments on commit b8d2d88

Please sign in to comment.