diff options
author | David McCauley <david.mccauley@wandisco.com> | 2013-09-11 10:46:37 +0100 |
---|---|---|
committer | David McCauley <david.mccauley@wandisco.com> | 2013-09-11 10:46:37 +0100 |
commit | 5dd875c5b569554262741f012e2e3857401c1677 (patch) | |
tree | 0a056b05e7b703b0630eada2a3ff9758f582beb9 /core/src/main | |
parent | 8c14f4b72269093a62510dbb2f1e954c103ffcd4 (diff) | |
download | spark-5dd875c5b569554262741f012e2e3857401c1677.tar.gz spark-5dd875c5b569554262741f012e2e3857401c1677.tar.bz2 spark-5dd875c5b569554262741f012e2e3857401c1677.zip |
SPARK-894 - Not all WebUI fields delivered VIA JSON
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/JsonProtocol.scala | 4 |
1 files changed, 3 insertions, 1 deletions
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 a6be8efef1..87a703427c 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) = { |