diff options
Diffstat (limited to 'core/src/main/twirl')
16 files changed, 0 insertions, 492 deletions
diff --git a/core/src/main/twirl/spark/common/layout.scala.html b/core/src/main/twirl/spark/common/layout.scala.html deleted file mode 100644 index b9192060aa..0000000000 --- a/core/src/main/twirl/spark/common/layout.scala.html +++ /dev/null @@ -1,35 +0,0 @@ -@(title: String)(content: Html) - -<!DOCTYPE html> -<html> - - <head> - <meta http-equiv="Content-type" content="text/html; charset=utf-8"> - <link rel="stylesheet" href="static/bootstrap.min.css" type="text/css"> - <link rel="stylesheet" href="static/bootstrap-responsive.min.css" type="text/css"> - <script src="static/sorttable.js"></script> - <title>@title</title> - <style type="text/css"> - table.sortable thead { cursor: pointer; } - </style> - </head> - - <body> - <div class="container"> - - <!-- HEADER --> - <div class="row"> - <div class="span12"> - <img src="static/spark_logo.png"> - <h1 style="vertical-align: bottom; margin-bottom: 10px; margin-left: 30px; display: inline-block;"> @title </h1> - </div> - </div> - - <hr/> - - @content - - </div> - </body> - -</html>
\ No newline at end of file diff --git a/core/src/main/twirl/spark/deploy/master/app_details.scala.html b/core/src/main/twirl/spark/deploy/master/app_details.scala.html deleted file mode 100644 index 5e5e5de551..0000000000 --- a/core/src/main/twirl/spark/deploy/master/app_details.scala.html +++ /dev/null @@ -1,38 +0,0 @@ -@(app: spark.deploy.master.ApplicationInfo) - -@spark.common.html.layout(title = "Application Details") { - - <!-- Application Details --> - <div class="row"> - <div class="span12"> - <ul class="unstyled"> - <li><strong>ID:</strong> @app.id</li> - <li><strong>Description:</strong> @app.desc.name</li> - <li><strong>User:</strong> @app.desc.user</li> - <li><strong>Cores:</strong> - @if(app.desc.maxCores == Integer.MAX_VALUE) { - Unlimited (@app.coresGranted granted) - } else { - @app.desc.maxCores (@app.coresGranted granted, @app.coresLeft left) - } - </li> - <li><strong>Memory per Slave:</strong> @app.desc.memoryPerSlave</li> - <li><strong>Submit Date:</strong> @app.submitDate</li> - <li><strong>State:</strong> @app.state</li> - <li><strong><a href="@app.appUiUrl">Application Detail UI</a></strong></li> - </ul> - </div> - </div> - - <hr/> - - <!-- Executors --> - <div class="row"> - <div class="span12"> - <h3> Executor Summary </h3> - <br/> - @executors_table(app.executors.values.toList) - </div> - </div> - -} diff --git a/core/src/main/twirl/spark/deploy/master/app_row.scala.html b/core/src/main/twirl/spark/deploy/master/app_row.scala.html deleted file mode 100644 index feb306f35c..0000000000 --- a/core/src/main/twirl/spark/deploy/master/app_row.scala.html +++ /dev/null @@ -1,20 +0,0 @@ -@(app: spark.deploy.master.ApplicationInfo) - -@import spark.Utils -@import spark.deploy.WebUI.formatDate -@import spark.deploy.WebUI.formatDuration - -<tr> - <td> - <a href="app?appId=@(app.id)">@app.id</a> - </td> - <td>@app.desc.name</td> - <td> - @app.coresGranted - </td> - <td>@Utils.memoryMegabytesToString(app.desc.memoryPerSlave)</td> - <td>@formatDate(app.submitDate)</td> - <td>@app.desc.user</td> - <td>@app.state.toString()</td> - <td>@formatDuration(app.duration)</td> -</tr> diff --git a/core/src/main/twirl/spark/deploy/master/app_table.scala.html b/core/src/main/twirl/spark/deploy/master/app_table.scala.html deleted file mode 100644 index f789cee0f1..0000000000 --- a/core/src/main/twirl/spark/deploy/master/app_table.scala.html +++ /dev/null @@ -1,21 +0,0 @@ -@(apps: Array[spark.deploy.master.ApplicationInfo]) - -<table class="table table-bordered table-striped table-condensed sortable"> - <thead> - <tr> - <th>ID</th> - <th>Description</th> - <th>Cores</th> - <th>Memory per Node</th> - <th>Submit Time</th> - <th>User</th> - <th>State</th> - <th>Duration</th> - </tr> - </thead> - <tbody> - @for(j <- apps) { - @app_row(j) - } - </tbody> -</table> diff --git a/core/src/main/twirl/spark/deploy/master/executor_row.scala.html b/core/src/main/twirl/spark/deploy/master/executor_row.scala.html deleted file mode 100644 index 21e72c7aab..0000000000 --- a/core/src/main/twirl/spark/deploy/master/executor_row.scala.html +++ /dev/null @@ -1,15 +0,0 @@ -@(executor: spark.deploy.master.ExecutorInfo) - -<tr> - <td>@executor.id</td> - <td> - <a href="@executor.worker.webUiAddress">@executor.worker.id</a> - </td> - <td>@executor.cores</td> - <td>@executor.memory</td> - <td>@executor.state</td> - <td> - <a href="@(executor.worker.webUiAddress)/log?appId=@(executor.application.id)&executorId=@(executor.id)&logType=stdout">stdout</a> - <a href="@(executor.worker.webUiAddress)/log?appId=@(executor.application.id)&executorId=@(executor.id)&logType=stderr">stderr</a> - </td> -</tr> diff --git a/core/src/main/twirl/spark/deploy/master/executors_table.scala.html b/core/src/main/twirl/spark/deploy/master/executors_table.scala.html deleted file mode 100644 index cafc42c80e..0000000000 --- a/core/src/main/twirl/spark/deploy/master/executors_table.scala.html +++ /dev/null @@ -1,19 +0,0 @@ -@(executors: List[spark.deploy.master.ExecutorInfo]) - -<table class="table table-bordered table-striped table-condensed"> - <thead> - <tr> - <th>ExecutorID</th> - <th>Worker</th> - <th>Cores</th> - <th>Memory</th> - <th>State</th> - <th>Logs</th> - </tr> - </thead> - <tbody> - @for(e <- executors) { - @executor_row(e) - } - </tbody> -</table>
\ No newline at end of file diff --git a/core/src/main/twirl/spark/deploy/master/index.scala.html b/core/src/main/twirl/spark/deploy/master/index.scala.html deleted file mode 100644 index b9b9f08810..0000000000 --- a/core/src/main/twirl/spark/deploy/master/index.scala.html +++ /dev/null @@ -1,53 +0,0 @@ -@(state: spark.deploy.MasterState) -@import spark.deploy.master._ -@import spark.Utils - -@spark.common.html.layout(title = "Spark Master on " + state.host + ":" + state.port) { - - <!-- Cluster Details --> - <div class="row"> - <div class="span12"> - <ul class="unstyled"> - <li><strong>URL:</strong> @(state.uri)</li> - <li><strong>Workers:</strong> @state.workers.size </li> - <li><strong>Cores:</strong> @{state.workers.map(_.cores).sum} Total, - @{state.workers.map(_.coresUsed).sum} Used</li> - <li><strong>Memory:</strong> @{Utils.memoryMegabytesToString(state.workers.map(_.memory).sum)} Total, - @{Utils.memoryMegabytesToString(state.workers.map(_.memoryUsed).sum)} Used</li> - <li><strong>Applications:</strong> @state.activeApps.size Running, @state.completedApps.size Completed </li> - </ul> - </div> - </div> - - <!-- Worker Summary --> - <div class="row"> - <div class="span12"> - <h3> Workers </h3> - <br/> - @worker_table(state.workers.sortBy(_.id)) - </div> - </div> - - <hr/> - - <!-- App Summary (Running) --> - <div class="row"> - <div class="span12"> - <h3> Running Applications </h3> - <br/> - @app_table(state.activeApps.sortBy(_.startTime).reverse) - </div> - </div> - - <hr/> - - <!-- App Summary (Completed) --> - <div class="row"> - <div class="span12"> - <h3> Completed Applications </h3> - <br/> - @app_table(state.completedApps.sortBy(_.endTime).reverse) - </div> - </div> - -} diff --git a/core/src/main/twirl/spark/deploy/master/worker_row.scala.html b/core/src/main/twirl/spark/deploy/master/worker_row.scala.html deleted file mode 100644 index 46277ca421..0000000000 --- a/core/src/main/twirl/spark/deploy/master/worker_row.scala.html +++ /dev/null @@ -1,14 +0,0 @@ -@(worker: spark.deploy.master.WorkerInfo) - -@import spark.Utils - -<tr> - <td> - <a href="@worker.webUiAddress">@worker.id</a> - </td> - <td>@{worker.host}:@{worker.port}</td> - <td>@worker.state</td> - <td>@worker.cores (@worker.coresUsed Used)</td> - <td>@{Utils.memoryMegabytesToString(worker.memory)} - (@{Utils.memoryMegabytesToString(worker.memoryUsed)} Used)</td> -</tr> diff --git a/core/src/main/twirl/spark/deploy/master/worker_table.scala.html b/core/src/main/twirl/spark/deploy/master/worker_table.scala.html deleted file mode 100644 index b249411a62..0000000000 --- a/core/src/main/twirl/spark/deploy/master/worker_table.scala.html +++ /dev/null @@ -1,18 +0,0 @@ -@(workers: Array[spark.deploy.master.WorkerInfo]) - -<table class="table table-bordered table-striped table-condensed sortable"> - <thead> - <tr> - <th>ID</th> - <th>Address</th> - <th>State</th> - <th>Cores</th> - <th>Memory</th> - </tr> - </thead> - <tbody> - @for(w <- workers) { - @worker_row(w) - } - </tbody> -</table> diff --git a/core/src/main/twirl/spark/deploy/worker/executor_row.scala.html b/core/src/main/twirl/spark/deploy/worker/executor_row.scala.html deleted file mode 100644 index dad0a89080..0000000000 --- a/core/src/main/twirl/spark/deploy/worker/executor_row.scala.html +++ /dev/null @@ -1,20 +0,0 @@ -@(executor: spark.deploy.worker.ExecutorRunner) - -@import spark.Utils - -<tr> - <td>@executor.execId</td> - <td>@executor.cores</td> - <td>@Utils.memoryMegabytesToString(executor.memory)</td> - <td> - <ul class="unstyled"> - <li><strong>ID:</strong> @executor.appId</li> - <li><strong>Name:</strong> @executor.appDesc.name</li> - <li><strong>User:</strong> @executor.appDesc.user</li> - </ul> - </td> - <td> - <a href="log?appId=@(executor.appId)&executorId=@(executor.execId)&logType=stdout">stdout</a> - <a href="log?appId=@(executor.appId)&executorId=@(executor.execId)&logType=stderr">stderr</a> - </td> -</tr> diff --git a/core/src/main/twirl/spark/deploy/worker/executors_table.scala.html b/core/src/main/twirl/spark/deploy/worker/executors_table.scala.html deleted file mode 100644 index 327a2399c7..0000000000 --- a/core/src/main/twirl/spark/deploy/worker/executors_table.scala.html +++ /dev/null @@ -1,18 +0,0 @@ -@(executors: List[spark.deploy.worker.ExecutorRunner]) - -<table class="table table-bordered table-striped table-condensed sortable"> - <thead> - <tr> - <th>ExecutorID</th> - <th>Cores</th> - <th>Memory</th> - <th>Job Details</th> - <th>Logs</th> - </tr> - </thead> - <tbody> - @for(e <- executors) { - @executor_row(e) - } - </tbody> -</table>
\ No newline at end of file diff --git a/core/src/main/twirl/spark/deploy/worker/index.scala.html b/core/src/main/twirl/spark/deploy/worker/index.scala.html deleted file mode 100644 index 0e66af9284..0000000000 --- a/core/src/main/twirl/spark/deploy/worker/index.scala.html +++ /dev/null @@ -1,44 +0,0 @@ -@(worker: spark.deploy.WorkerState) -@import spark.Utils - -@spark.common.html.layout(title = "Spark Worker on " + worker.host + ":" + worker.port) { - - <!-- Worker Details --> - <div class="row"> - <div class="span12"> - <ul class="unstyled"> - <li><strong>ID:</strong> @worker.workerId</li> - <li><strong> - Master URL:</strong> @worker.masterUrl - </li> - <li><strong>Cores:</strong> @worker.cores (@worker.coresUsed Used)</li> - <li><strong>Memory:</strong> @{Utils.memoryMegabytesToString(worker.memory)} - (@{Utils.memoryMegabytesToString(worker.memoryUsed)} Used)</li> - </ul> - <p><a href="@worker.masterWebUiUrl">Back to Master</a></p> - </div> - </div> - - <hr/> - - <!-- Running Executors --> - <div class="row"> - <div class="span12"> - <h3> Running Executors </h3> - <br/> - @executors_table(worker.executors) - </div> - </div> - - <hr/> - - <!-- Finished Executors --> - <div class="row"> - <div class="span12"> - <h3> Finished Executors </h3> - <br/> - @executors_table(worker.finishedExecutors) - </div> - </div> - -} diff --git a/core/src/main/twirl/spark/storage/index.scala.html b/core/src/main/twirl/spark/storage/index.scala.html deleted file mode 100644 index 2b337f6133..0000000000 --- a/core/src/main/twirl/spark/storage/index.scala.html +++ /dev/null @@ -1,40 +0,0 @@ -@(maxMem: Long, remainingMem: Long, diskSpaceUsed: Long, rdds: Array[spark.storage.RDDInfo], storageStatusList: Array[spark.storage.StorageStatus]) -@import spark.Utils - -@spark.common.html.layout(title = "Storage Dashboard") { - - <!-- High-Level Information --> - <div class="row"> - <div class="span12"> - <ul class="unstyled"> - <li><strong>Memory:</strong> - @{Utils.memoryBytesToString(maxMem - remainingMem)} Used - (@{Utils.memoryBytesToString(remainingMem)} Available) </li> - <li><strong>Disk:</strong> @{Utils.memoryBytesToString(diskSpaceUsed)} Used </li> - </ul> - </div> - </div> - - <hr/> - - <!-- RDD Summary --> - <div class="row"> - <div class="span12"> - <h3> RDD Summary </h3> - <br/> - @rdd_table(rdds) - </div> - </div> - - <hr/> - - <!-- Worker Summary --> - <div class="row"> - <div class="span12"> - <h3> Worker Summary </h3> - <br/> - @worker_table(storageStatusList) - </div> - </div> - -}
\ No newline at end of file diff --git a/core/src/main/twirl/spark/storage/rdd.scala.html b/core/src/main/twirl/spark/storage/rdd.scala.html deleted file mode 100644 index d85addeb17..0000000000 --- a/core/src/main/twirl/spark/storage/rdd.scala.html +++ /dev/null @@ -1,81 +0,0 @@ -@(rddInfo: spark.storage.RDDInfo, storageStatusList: Array[spark.storage.StorageStatus]) -@import spark.Utils - -@spark.common.html.layout(title = "RDD Info ") { - - <!-- High-Level Information --> - <div class="row"> - <div class="span12"> - <ul class="unstyled"> - <li> - <strong>Storage Level:</strong> - @(rddInfo.storageLevel.description) - <li> - <strong>Cached Partitions:</strong> - @(rddInfo.numCachedPartitions) - </li> - <li> - <strong>Total Partitions:</strong> - @(rddInfo.numPartitions) - </li> - <li> - <strong>Memory Size:</strong> - @{Utils.memoryBytesToString(rddInfo.memSize)} - </li> - <li> - <strong>Disk Size:</strong> - @{Utils.memoryBytesToString(rddInfo.diskSize)} - </li> - </ul> - </div> - </div> - - <hr/> - - <!-- RDD Summary --> - <div class="row"> - <div class="span12"> - <h3> RDD Summary </h3> - <br/> - - - <!-- Block Table Summary --> - <table class="table table-bordered table-striped table-condensed sortable"> - <thead> - <tr> - <th>Block Name</th> - <th>Storage Level</th> - <th>Size in Memory</th> - <th>Size on Disk</th> - </tr> - </thead> - <tbody> - @storageStatusList.flatMap(_.blocks).toArray.sortWith(_._1 < _._1).map { case (k,v) => - <tr> - <td>@k</td> - <td> - @(v.storageLevel.description) - </td> - <td>@{Utils.memoryBytesToString(v.memSize)}</td> - <td>@{Utils.memoryBytesToString(v.diskSize)}</td> - </tr> - } - </tbody> - </table> - - - </div> - </div> - - <hr/> - - <!-- Worker Table --> - <div class="row"> - <div class="span12"> - <h3> Worker Summary </h3> - <br/> - @worker_table(storageStatusList, "rdd_" + rddInfo.id ) - </div> - </div> - -}
\ No newline at end of file diff --git a/core/src/main/twirl/spark/storage/rdd_table.scala.html b/core/src/main/twirl/spark/storage/rdd_table.scala.html deleted file mode 100644 index a51e64aed0..0000000000 --- a/core/src/main/twirl/spark/storage/rdd_table.scala.html +++ /dev/null @@ -1,32 +0,0 @@ -@(rdds: Array[spark.storage.RDDInfo]) -@import spark.Utils - -<table class="table table-bordered table-striped table-condensed sortable"> - <thead> - <tr> - <th>RDD Name</th> - <th>Storage Level</th> - <th>Cached Partitions</th> - <th>Fraction Partitions Cached</th> - <th>Size in Memory</th> - <th>Size on Disk</th> - </tr> - </thead> - <tbody> - @for(rdd <- rdds) { - <tr> - <td> - <a href="rdd?id=@(rdd.id)"> - @rdd.name - </a> - </td> - <td>@(rdd.storageLevel.description) - </td> - <td>@rdd.numCachedPartitions</td> - <td>@(rdd.numCachedPartitions / rdd.numPartitions.toDouble)</td> - <td>@{Utils.memoryBytesToString(rdd.memSize)}</td> - <td>@{Utils.memoryBytesToString(rdd.diskSize)}</td> - </tr> - } - </tbody> -</table>
\ No newline at end of file diff --git a/core/src/main/twirl/spark/storage/worker_table.scala.html b/core/src/main/twirl/spark/storage/worker_table.scala.html deleted file mode 100644 index cd72a688c1..0000000000 --- a/core/src/main/twirl/spark/storage/worker_table.scala.html +++ /dev/null @@ -1,24 +0,0 @@ -@(workersStatusList: Array[spark.storage.StorageStatus], prefix: String = "") -@import spark.Utils - -<table class="table table-bordered table-striped table-condensed sortable"> - <thead> - <tr> - <th>Host</th> - <th>Memory Usage</th> - <th>Disk Usage</th> - </tr> - </thead> - <tbody> - @for(status <- workersStatusList) { - <tr> - <td>@(status.blockManagerId.host + ":" + status.blockManagerId.port)</td> - <td> - @(Utils.memoryBytesToString(status.memUsed(prefix))) - (@(Utils.memoryBytesToString(status.memRemaining)) Total Available) - </td> - <td>@(Utils.memoryBytesToString(status.diskUsed(prefix)))</td> - </tr> - } - </tbody> -</table>
\ No newline at end of file |