blob: d85addeb1755e77fa0c7ee947b8e6892aa3e29d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
@(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>
}
|