HBASE-1564 in UI make host addresses all look the same -- not IP sometimes and host at others

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@787790 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-06-23 19:04:01 +00:00
parent fe66233cfa
commit 9730fcbdb7
3 changed files with 5 additions and 3 deletions

View File

@ -218,6 +218,8 @@ Release 0.20.0 - Unreleased
not reassigned
HBASE-1568 Client doesnt consult old row filter interface in
filterSaysStop() - could result in NPE or excessive scanning
HBASE-1564 in UI make host addresses all look the same -- not IP sometimes
and host at others
IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -147,7 +147,7 @@ $(document).ready(function(){
Arrays.sort(serverNames);
for (String serverName: serverNames) {
HServerInfo hsi = serverToServerInfos.get(serverName);
String hostname = hsi.getServerAddress().getInetSocketAddress().getAddress().getHostAddress() + ":" + hsi.getInfoPort();
String hostname = hsi.getServerAddress().getHostname() + ":" + hsi.getInfoPort();
String url = "http://" + hostname + "/";
totalRegions += hsi.getLoad().getNumberOfRegions();
totalRequests += hsi.getLoad().getNumberOfRequests() / interval;

View File

@ -110,7 +110,7 @@
%>
<tr>
<td><%= Bytes.toString(meta.getRegionName()) %></td>
<td><a href="<%= url %>"><%= meta.getServer().toString() %></a></td>
<td><a href="<%= url %>"><%= meta.getServer().getHostname().toString() + ":" + infoPort %></a></td>
<td>-</td><td><%= Bytes.toString(meta.getStartKey()) %></td><td>-</td>
</tr>
<% } %>
@ -141,7 +141,7 @@
%>
<tr>
<td><a href="<%= urlRegionHistorian %>"><%= Bytes.toStringBinary(hriEntry.getKey().getRegionName())%></a></td>
<td><a href="<%= urlRegionServer %>"><%= hriEntry.getValue().toString() %></a></td>
<td><a href="<%= urlRegionServer %>"><%= hriEntry.getValue().getHostname().toString() + ":" + infoPort %></a></td>
<td><%= hriEntry.getKey().getEncodedName()%></td> <td><%= Bytes.toStringBinary(hriEntry.getKey().getStartKey())%></td>
<td><%= Bytes.toStringBinary(hriEntry.getKey().getEndKey())%></td>
</tr>