Name | Region Server | Encoded Name | Start Key | End Key |
";
HServerAddress rootLocation = master.getRootRegionLocation();
%>
<%
String action = request.getParameter("action");
String key = request.getParameter("key");
if ( action != null ) {
%>
Table action request accepted
<%
if (action.equals("split")) {
if (key != null && key.length() > 0) {
Writable[] arr = new Writable[1];
arr[0] = new ImmutableBytesWritable(Bytes.toBytes(key));
master.modifyTable(Bytes.toBytes(tableName), HConstants.MODIFY_TABLE_SPLIT, arr);
} else {
master.modifyTable(Bytes.toBytes(tableName), HConstants.MODIFY_TABLE_SPLIT, null);
}
%> Split request accepted. <%
} else if (action.equals("compact")) {
if (key != null && key.length() > 0) {
Writable[] arr = new Writable[1];
arr[0] = new ImmutableBytesWritable(Bytes.toBytes(key));
master.modifyTable(Bytes.toBytes(tableName), HConstants.MODIFY_TABLE_COMPACT, arr);
} else {
master.modifyTable(Bytes.toBytes(tableName), HConstants.MODIFY_TABLE_COMPACT, null);
}
%> Compact request accepted. <%
}
%>
This page will refresh in 5 seconds.
<%
} else {
%>
Regions in <%= tableName %>
Regions in <%= tableName %>
<%if(tableName.equals(Bytes.toString(HConstants.ROOT_TABLE_NAME))) {%>
<%= tableHeader %>
<% int infoPort = serverToServerInfos.get(rootLocation.getBindAddress()+":"+rootLocation.getPort()).getInfoPort();
String url = "http://" + rootLocation.getHostname() + ":" + infoPort + "/";%>
<%= tableName %> | <%= rootLocation.getHostname() %>:<%= rootLocation.getPort() %> | - | | - |
<%} else if(tableName.equals(Bytes.toString(HConstants.META_TABLE_NAME))) { %>
<%= tableHeader %>
<% Map