/
hdfs.hbs
153 lines (150 loc) · 4.96 KB
/
hdfs.hbs
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
{{#unless view.showOnlyRows}}
<div class="clearfix" {{action toggleInfoView target="view"}}>
<div class="name span2">
{{#if view.isCollapsed}}
<i class="icon-arrow-down pull-left"></i>
{{else}}
<i class="icon-arrow-right pull-left"></i>
{{/if}}
{{view App.MainDashboardServiceHealthView serviceBinding="view.service"}}
<a {{action selectService view.service href=true}}>{{view.service.displayName}}</a>
{{#if view.criticalAlertsCount}}
<a {{action selectService view.service href=true}} class="label label-important">{{view.criticalAlertsCount}}</a>
{{/if}}
</div>
<div class="summary span">
{{view.summaryHeader}}
</div>
</div>
<div id="hdfs-info">
<table class="table no-borders">
<tbody>
{{/unless}}
<!-- NameNode -->
<tr>
<td>{{t dashboard.services.hdfs.nanmenode}}</td>
<td><a href="#" {{action showDetails view.service.nameNode}}>{{view.service.nameNode.publicHostName}}</a></td>
</tr>
<!-- SecondaryNameNode -->
<tr>
<td>{{t dashboard.services.hdfs.snanmenode}}</td>
<td><a href="#" {{action showDetails view.service.snameNode}}>{{view.service.snameNode.publicHostName}}</a></td>
</tr>
<!-- Data Nodes -->
<tr>
<td>{{t dashboard.services.hdfs.datanodes}}</td>
<td>
<a href="#" {{action filterHosts view.dataNodeComponent}}>{{view.service.dataNodes.length}} {{t dashboard.services.hdfs.datanodes}}</a>
</td>
</tr>
<!-- Version -->
<tr>
<td>{{t dashboard.services.hdfs.version}}</td>
<td>{{view.service.version}}</td>
</tr>
<!-- NameNode Web UI -->
<tr>
<td>{{t dashboard.services.hdfs.nameNodeWebUI}}</td>
<td><a {{bindAttr href="view.nodeWebUrl"}} target="_blank">{{view.service.nameNode.publicHostName}}:50070</a>
</td>
</tr>
<!-- NameNode Uptime -->
<tr>
<td>{{t dashboard.services.hdfs.nodes.uptime}}</td>
<td>{{view.nodeUptime}}</td>
</tr>
<!-- NameNode Heap -->
<tr>
<td>{{t dashboard.services.hdfs.nodes.heap}}</td>
<td>{{view.nodeHeap}}</td>
</tr>
<!-- Data Node Counts -->
<tr>
<td>{{t dashboard.services.hdfs.datanodecounts}}</td>
<td>
{{view.service.liveDataNodes.length}} {{t dashboard.services.hdfs.nodes.live}} /
{{view.service.deadDataNodes.length}} {{t dashboard.services.hdfs.nodes.dead}} /
{{view.service.decommisionDataNodes.length}} {{t dashboard.services.hdfs.nodes.decom}}
</td>
</tr>
<!-- HDFS Capacity -->
<tr>
<td>{{t dashboard.services.hdfs.capacity}}</td>
<td>{{view.capacity}}</td>
</tr>
<!-- Blocks Total -->
<tr>
<td>{{t services.service.summary.blocksTotal}}</td>
<td>{{view.service.dfsTotalBlocks}}</td>
</tr>
<!-- Block Errors -->
<tr>
<td>{{t services.service.summary.blockErrors}}</td>
<td>
{{view.service.dfsCorruptBlocks}} corrupt /
{{view.service.dfsMissingBlocks}} missing /
{{view.service.dfsUnderReplicatedBlocks}} under replicated
</td>
</tr>
<!-- Total Files And Directories -->
<tr>
<td>{{t dashboard.services.hdfs.totalFilesAndDirs}}</td>
<td>{{view.service.dfsTotalFiles}}</td>
</tr>
<!-- Upgrade Status -->
<tr>
<td>{{t services.service.summary.pendingUpgradeStatus}}</td>
<td>
{{#if view.service.upgradeStatus}}
<div>Pending upgrade</div>
{{else}}
<div>No pending upgrade</div>
{{/if}}
</td>
</tr>
<!-- Safe Mode Status -->
<tr>
<td>{{t services.service.summary.safeModeStatus}}</td>
<td>{{view.service.safeModeStatus}}</td>
</tr>
{{#unless view.showOnlyRows}}
</tbody>
</table>
<div class="dashboard-mini-chart">
{{view view.Chart serviceBinding="view.service"}}
<div class="chartLabel">{{t dashboard.services.hdfs.chart.label}}</div>
{{#if view.service.quickLinks.length}}
{{#view App.QuickViewLinks contentBinding="view.service"}}
<div class="btn-group">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
Quick Links
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
{{#each view.quickLinks}}
<li><a {{bindAttr href="url"}} target="_blank">{{label}}</a></li>
{{/each}}
</ul>
</div>
{{/view}}
{{/if}}
</div>
</div>
{{/unless}}