HBASE-3771 All jsp pages don't clean their HBA
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1091855 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74b9c22b23
commit
e228a142a8
|
@ -203,6 +203,7 @@ Release 0.90.3 - Unreleased
|
||||||
HBASE-3755 Catch zk's ConnectionLossException and augment error
|
HBASE-3755 Catch zk's ConnectionLossException and augment error
|
||||||
message with more help
|
message with more help
|
||||||
HBASE-3722 A lot of data is lost when name node crashed (gaojinchao)
|
HBASE-3722 A lot of data is lost when name node crashed (gaojinchao)
|
||||||
|
HBASE-3771 All jsp pages don't clean their HBA
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-3747 ReplicationSource should differanciate remote and local exceptions
|
HBASE-3747 ReplicationSource should differanciate remote and local exceptions
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
import="org.apache.hadoop.hbase.master.HMaster"
|
import="org.apache.hadoop.hbase.master.HMaster"
|
||||||
import="org.apache.hadoop.hbase.HConstants"
|
import="org.apache.hadoop.hbase.HConstants"
|
||||||
import="org.apache.hadoop.hbase.client.HBaseAdmin"
|
import="org.apache.hadoop.hbase.client.HBaseAdmin"
|
||||||
|
import="org.apache.hadoop.hbase.client.HConnectionManager"
|
||||||
import="org.apache.hadoop.hbase.HServerInfo"
|
import="org.apache.hadoop.hbase.HServerInfo"
|
||||||
import="org.apache.hadoop.hbase.HServerAddress"
|
import="org.apache.hadoop.hbase.HServerAddress"
|
||||||
import="org.apache.hadoop.hbase.HTableDescriptor" %><%
|
import="org.apache.hadoop.hbase.HTableDescriptor" %><%
|
||||||
|
@ -108,7 +109,10 @@
|
||||||
<%} %>
|
<%} %>
|
||||||
|
|
||||||
<h2>User Tables</h2>
|
<h2>User Tables</h2>
|
||||||
<% HTableDescriptor[] tables = new HBaseAdmin(conf).listTables();
|
<%
|
||||||
|
HBaseAdmin hba = new HBaseAdmin(conf);
|
||||||
|
HTableDescriptor[] tables = hba.listTables();
|
||||||
|
HConnectionManager.deleteConnection(hba.getConfiguration(), false);
|
||||||
if(tables != null && tables.length > 0) { %>
|
if(tables != null && tables.length > 0) { %>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
import="org.apache.hadoop.conf.Configuration"
|
import="org.apache.hadoop.conf.Configuration"
|
||||||
import="org.apache.hadoop.hbase.client.HTable"
|
import="org.apache.hadoop.hbase.client.HTable"
|
||||||
import="org.apache.hadoop.hbase.client.HBaseAdmin"
|
import="org.apache.hadoop.hbase.client.HBaseAdmin"
|
||||||
|
import="org.apache.hadoop.hbase.client.HConnectionManager"
|
||||||
import="org.apache.hadoop.hbase.HRegionInfo"
|
import="org.apache.hadoop.hbase.HRegionInfo"
|
||||||
import="org.apache.hadoop.hbase.HServerAddress"
|
import="org.apache.hadoop.hbase.HServerAddress"
|
||||||
import="org.apache.hadoop.hbase.HServerInfo"
|
import="org.apache.hadoop.hbase.HServerInfo"
|
||||||
|
@ -202,6 +203,8 @@
|
||||||
ex.printStackTrace(System.err);
|
ex.printStackTrace(System.err);
|
||||||
}
|
}
|
||||||
} // end else
|
} // end else
|
||||||
|
|
||||||
|
HConnectionManager.deleteConnection(hbadmin.getConfiguration(), false);
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<p><hr><p>
|
<p><hr><p>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
import="org.apache.hadoop.conf.Configuration"
|
import="org.apache.hadoop.conf.Configuration"
|
||||||
import="org.apache.hadoop.hbase.client.HBaseAdmin"
|
import="org.apache.hadoop.hbase.client.HBaseAdmin"
|
||||||
import="org.apache.hadoop.hbase.client.HConnection"
|
import="org.apache.hadoop.hbase.client.HConnection"
|
||||||
|
import="org.apache.hadoop.hbase.client.HConnectionManager"
|
||||||
import="org.apache.hadoop.hbase.HRegionInfo"
|
import="org.apache.hadoop.hbase.HRegionInfo"
|
||||||
import="org.apache.hadoop.hbase.zookeeper.ZKUtil"
|
import="org.apache.hadoop.hbase.zookeeper.ZKUtil"
|
||||||
import="org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher"
|
import="org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher"
|
||||||
|
@ -31,6 +32,7 @@
|
||||||
<hr id="head_rule" />
|
<hr id="head_rule" />
|
||||||
<pre>
|
<pre>
|
||||||
<%= ZKUtil.dump(watcher) %>
|
<%= ZKUtil.dump(watcher) %>
|
||||||
|
<% HConnectionManager.deleteConnection(hbadmin.getConfiguration(), false); %>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue