hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r787790 - in /hadoop/hbase/trunk: CHANGES.txt src/webapps/master/master.jsp src/webapps/master/table.jsp
Date Tue, 23 Jun 2009 19:04:01 GMT
Author: stack
Date: Tue Jun 23 19:04:01 2009
New Revision: 787790

URL: http://svn.apache.org/viewvc?rev=787790&view=rev
Log:
HBASE-1564 in UI make host addresses all look the same -- not IP sometimes and host at others

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/webapps/master/master.jsp
    hadoop/hbase/trunk/src/webapps/master/table.jsp

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=787790&r1=787789&r2=787790&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Tue Jun 23 19:04:01 2009
@@ -218,6 +218,8 @@
                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

Modified: hadoop/hbase/trunk/src/webapps/master/master.jsp
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/webapps/master/master.jsp?rev=787790&r1=787789&r2=787790&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/webapps/master/master.jsp (original)
+++ hadoop/hbase/trunk/src/webapps/master/master.jsp Tue Jun 23 19:04:01 2009
@@ -147,7 +147,7 @@
      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;

Modified: hadoop/hbase/trunk/src/webapps/master/table.jsp
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/webapps/master/table.jsp?rev=787790&r1=787789&r2=787790&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/webapps/master/table.jsp (original)
+++ hadoop/hbase/trunk/src/webapps/master/table.jsp Tue Jun 23 19:04:01 2009
@@ -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>



Mime
View raw message