From 99fc06705d8d60690a315e4e0287ca1c67d3ad28 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 14 May 2008 22:41:58 +0000 Subject: [PATCH] HBASE-23 Fix bug introduced by my edits of JDC's patch git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@656456 13f79535-47bb-0310-9956-ffa450edef68 --- src/webapps/master/WEB-INF/web.xml | 16 ++++++++-------- src/webapps/master/table.jsp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/webapps/master/WEB-INF/web.xml b/src/webapps/master/WEB-INF/web.xml index 3fe49cdcded..8c08937f719 100644 --- a/src/webapps/master/WEB-INF/web.xml +++ b/src/webapps/master/WEB-INF/web.xml @@ -9,11 +9,6 @@ Automatically created by Tomcat JspC. - - org.apache.hadoop.hbase.generated.master.table_jsp - org.apache.hadoop.hbase.generated.master.table_jsp - - org.apache.hadoop.hbase.generated.master.hql_jsp org.apache.hadoop.hbase.generated.master.hql_jsp @@ -24,10 +19,10 @@ Automatically created by Tomcat JspC. org.apache.hadoop.hbase.generated.master.master_jsp - + org.apache.hadoop.hbase.generated.master.table_jsp - /table.jsp - + org.apache.hadoop.hbase.generated.master.table_jsp + org.apache.hadoop.hbase.generated.master.hql_jsp @@ -39,5 +34,10 @@ Automatically created by Tomcat JspC. /master.jsp + + org.apache.hadoop.hbase.generated.master.table_jsp + /table.jsp + + diff --git a/src/webapps/master/table.jsp b/src/webapps/master/table.jsp index 76a357d3ab8..5e6d5557cf0 100644 --- a/src/webapps/master/table.jsp +++ b/src/webapps/master/table.jsp @@ -57,7 +57,7 @@ <% for(Map.Entry hriEntry : regions.entrySet()) { %> <% System.out.println(serverToServerInfos.keySet().toArray()[0].toString()); System.out.println(hriEntry.getValue().getHostname()+":"+hriEntry.getValue().getPort()); - int infoPort = serverToServerInfos.get(hriEntry.getValue().getHostname()+":"+hriEntry.getValue().getPort()).getInfoPort(); + int infoPort = serverToServerInfos.get(hriEntry.getValue().getBindAddress()+":"+hriEntry.getValue().getPort()).getInfoPort(); String url = "http://" + hriEntry.getValue().getHostname().toString() + ":" + infoPort + "/"; %> <%= hriEntry.getKey().getRegionName()%><%= hriEntry.getValue().getHostname() %>:<%= hriEntry.getValue().getPort() %> <%= hriEntry.getKey().getEncodedName()%> <%= hriEntry.getKey().getStartKey()%>