HDFS-14919. Provide Non DFS Used per DataNode in DataNode UI. Contributed by Lisheng Sun.

This commit is contained in:
Ayush Saxena 2020-03-18 20:55:34 +05:30
parent 6ce5f8734f
commit 654db35fa2
2 changed files with 6 additions and 0 deletions

View File

@ -329,6 +329,8 @@
<th>Http Address</th> <th>Http Address</th>
<th>Last contact</th> <th>Last contact</th>
<th>Last Block Report</th> <th>Last Block Report</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>
@ -342,6 +344,8 @@
<td ng-value="{state}-{name}"><a href='{dnWebAddress}'>{dnWebAddress}</a></td> <td ng-value="{state}-{name}"><a href='{dnWebAddress}'>{dnWebAddress}</a></td>
<td ng-value="{lastContact}">{lastContact}s</td> <td ng-value="{lastContact}">{lastContact}s</td>
<td ng-value="{lastBlockReport}">{lastBlockReport}m</td> <td ng-value="{lastBlockReport}">{lastBlockReport}m</td>
<td ng-value="{used}">{used|fmt_bytes}</td>
<td ng-value="{nonDfsUsedSpace}">{nonDfsUsedSpace|fmt_bytes}</td>
<td ng-value="{usedPercentage}"> <td ng-value="{usedPercentage}">
<div> <div>
<div style="display:inline-block; float: left; padding-right: 10px; width:80px">{capacity|fmt_bytes}</div> <div style="display:inline-block; float: left; padding-right: 10px; width:80px">{capacity|fmt_bytes}</div>

View File

@ -356,6 +356,8 @@
{ 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0}, { 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0},
{ 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0}, { 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0},
{ 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0}, { 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0},
{ 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0},
{ 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0},
{ 'type': 'num' , "defaultContent": 0}, { 'type': 'num' , "defaultContent": 0},
{ 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0}, { 'orderDataType': 'ng-value', 'type': 'num' , "defaultContent": 0},
{ 'type': 'string' , "defaultContent": ""} { 'type': 'string' , "defaultContent": ""}