HDFS-15247. RBF: Provide Non DFS Used per DataNode in DataNode UI. Contributed by Lisheng Sun.

This commit is contained in:
Ayush Saxena 2020-04-12 12:05:50 +05:30
parent 2ea5adf2de
commit 8d49229c37
2 changed files with 6 additions and 0 deletions

View File

@ -326,6 +326,8 @@
<tr> <tr>
<th>Node</th> <th>Node</th>
<th>Last contact</th> <th>Last contact</th>
<th>Used</th>
<th>Non DFS Used</th>
<th style="width:180px; text-align:center">Capacity</th> <th style="width:180px; text-align:center">Capacity</th>
<!--th>Blocks</th--> <!--th>Blocks</th-->
<th>Block pool used</th> <th>Block pool used</th>
@ -336,6 +338,8 @@
<tr> <tr>
<td ng-value="{state}-{name}" class="dfshealth-node-icon dfshealth-node-{state}">{location}/{name} ({xferaddr})</td> <td ng-value="{state}-{name}" class="dfshealth-node-icon dfshealth-node-{state}">{location}/{name} ({xferaddr})</td>
<td ng-value="{lastContact}">{#helper_relative_time value="{lastContact}"/}</td> <td ng-value="{lastContact}">{#helper_relative_time value="{lastContact}"/}</td>
<td ng-value="{used}">{used|fmt_bytes}</td>
<td ng-value="{nonDfsUsedSpace}">{nonDfsUsedSpace|fmt_bytes}</td>
<td ng-value="{usedPercentage}" style="width:210px"> <td ng-value="{usedPercentage}" style="width:210px">
<div> <div>
<div style="display:inline-block; float: left; padding-right: 10px; width:60px;">{capacity|fmt_bytes}</div> <div style="display:inline-block; float: left; padding-right: 10px; width:60px;">{capacity|fmt_bytes}</div>

View File

@ -319,6 +319,8 @@
{ 'orderDataType': 'ng-value', 'searchable': true }, { 'orderDataType': 'ng-value', 'searchable': true },
{ 'orderDataType': 'ng-value', 'type': 'numeric' }, { 'orderDataType': 'ng-value', 'type': 'numeric' },
{ 'orderDataType': 'ng-value', 'type': 'numeric' }, { 'orderDataType': 'ng-value', 'type': 'numeric' },
{ 'orderDataType': 'ng-value', 'type': 'numeric' },
{ 'orderDataType': 'ng-value', 'type': 'numeric' },
{ 'orderDataType': 'ng-value', 'type': 'numeric'} { 'orderDataType': 'ng-value', 'type': 'numeric'}
]}); ]});
$('#ui-tabs a[href="#tab-datanode"]').tab('show'); $('#ui-tabs a[href="#tab-datanode"]').tab('show');