spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject [08/13] git commit: SPARK-894 - Not all WebUI fields delivered VIA JSON
Date Wed, 11 Sep 2013 17:26:47 GMT
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/branch-0.8
Commit: 5dd875c5b569554262741f012e2e3857401c1677
Parents: 8c14f4b
Author: David McCauley <david.mccauley@wandisco.com>
Authored: Wed Sep 11 10:46:37 2013 +0100
Committer: David McCauley <david.mccauley@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) = {


Mime
View raw message