You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2013/09/21 00:06:49 UTC

[29/50] git commit: SPARK-894 - Not all WebUI fields delivered VIA JSON

SPARK-894 - Not all WebUI fields delivered VIA JSON


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/5dd875c5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/5dd875c5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/5dd875c5

Branch: refs/heads/master
Commit: 5dd875c5b569554262741f012e2e3857401c1677
Parents: 8c14f4b
Author: David McCauley <da...@wandisco.com>
Authored: Wed Sep 11 10:46:37 2013 +0100
Committer: David McCauley <da...@wandisco.com>
Committed: Wed Sep 11 10:46:37 2013 +0100

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/5dd875c5/core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala b/core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala
index a6be8ef..87a7034 100644
--- a/core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala
@@ -44,7 +44,9 @@ private[spark] object JsonProtocol {
     ("cores" -> obj.desc.maxCores) ~
     ("user" ->  obj.desc.user) ~
     ("memoryperslave" -> obj.desc.memoryPerSlave) ~
-    ("submitdate" -> obj.submitDate.toString)
+    ("submitdate" -> obj.submitDate.toString) ~
+    ("state" -> obj.state.toString) ~
+    ("duration" -> obj.duration)
   }
 
   def writeApplicationDescription(obj: ApplicationDescription) = {