diff options
author | Denny <dennybritz@gmail.com> | 2012-07-31 08:39:24 -0700 |
---|---|---|
committer | Denny <dennybritz@gmail.com> | 2012-08-01 11:01:09 -0700 |
commit | 7a295fee9641e7b9480dd5cb520afe45039ffbe0 (patch) | |
tree | b89a6bf716cdbc0821267ab070c1f9761fff6adb /core/src/main/twirl/masterui/index.scala.html | |
parent | f471c82558347216985a8b7015309c4cce099cc4 (diff) | |
download | spark-7a295fee9641e7b9480dd5cb520afe45039ffbe0.tar.gz spark-7a295fee9641e7b9480dd5cb520afe45039ffbe0.tar.bz2 spark-7a295fee9641e7b9480dd5cb520afe45039ffbe0.zip |
Spark WebUI Implementation.
Diffstat (limited to 'core/src/main/twirl/masterui/index.scala.html')
-rw-r--r-- | core/src/main/twirl/masterui/index.scala.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/core/src/main/twirl/masterui/index.scala.html b/core/src/main/twirl/masterui/index.scala.html new file mode 100644 index 0000000000..ddf6163765 --- /dev/null +++ b/core/src/main/twirl/masterui/index.scala.html @@ -0,0 +1,37 @@ +@(jobs: List[spark.deploy.master.JobInfo], workers: List[spark.deploy.master.WorkerInfo]) +@import spark.deploy.master._ + +@common.html.layout(title = "Master WebUI") { + + <!-- Cluster Summary (Workers) --> + <div class="row"> + <div class="span12"> + <h3> Cluster Summary </h3> + <br/> + @worker_table(workers) + </div> + </div> + + <hr/> + + <!-- Job Summary (Running) --> + <div class="row"> + <div class="span12"> + <h3> Running Jobs </h3> + <br/> + @job_table(jobs.filter(j => j.state == JobState.WAITING || j.state == JobState.RUNNING)) + </div> + </div> + + <hr/> + + <!-- Job Summary (Completed) --> + <div class="row"> + <div class="span12"> + <h3> Completed Jobs </h3> + <br/> + @job_table(jobs.filter(j => j.state == JobState.FINISHED || j.state == JobState.FAILED)) + </div> + </div> + +}
\ No newline at end of file |