Skip to content

Commit

Permalink
Correct stage Attempt Id key in stageInfofromJson
Browse files Browse the repository at this point in the history
  • Loading branch information
suyanNone committed Jan 7, 2015
1 parent e21acc1 commit 41419ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private[spark] object JsonProtocol {

def stageInfoFromJson(json: JValue): StageInfo = {
val stageId = (json \ "Stage ID").extract[Int]
val attemptId = (json \ "Attempt ID").extractOpt[Int].getOrElse(0)
val attemptId = (json \ "Stage Attempt ID").extractOpt[Int].getOrElse(0)
val stageName = (json \ "Stage Name").extract[String]
val numTasks = (json \ "Number of Tasks").extract[Int]
val rddInfos = (json \ "RDD Info").extract[List[JValue]].map(rddInfoFromJson(_))
Expand Down

0 comments on commit 41419ab

Please sign in to comment.